[api-module] How can I access the API module via JS?
Created 7 years ago by daviesgeek

I'm trying to access the API module via a JS front-end (Vue, Angular, vanilla JS) and I can't figure out how to get it working! I think I'm just doing it all wrong, but anyhow, how would I go about doing this?

ryanthompson  —  7 years ago

Check out passport docs that's what it's built around

daviesgeek  —  7 years ago

Thanks I'm going to start with just a plain ol' Laravel app and try to get it working from there.

skoretsky  —  7 years ago

http://image.prntscr.com/image/6a218e807ae742a7be6267689fd4c6bb.png - awesome! let You know ;)

all my laravel-based apps are 100% SPA. just simple bootstrap admin lte theme and NG2/Vuejs on frontend and REST routes on backend sides. So it would be amazing if you show us subject related technics and best practices from the point of view of PyroCMS world.

by the way

Check out passport docs that's what it's built around http://pyrocms.com/documentation?q=passport what exactly passport did you mean ?

markbratanov  —  7 years ago

@skoretsky He's referring to Laravel Passport. You can reference the documentation here https://laravel.com/docs/5.3/passport

Hope that helps!