Can anyone help with this one?
May 7, 2020
3
Level 4
Use API routes?
My website is a mix of HTML and VUE components.
HTML data is populated via PHP on server.
VUE data is populated by axios calls to API routes.
At this stage I have no need for an external iOS/Android app (but may do in the near future). So the data is only currently being consumed by my website.
- Should the VUE routes sit under API routes (and thus implement some sort of token auth - passport etc).
- If the answer to the first question is yes, should my web routes and controllers consume my API internally - or should they just talk to my service class (the same service class the API controllers use) to get the data.
Thank you
Please or to participate in this conversation.