5 months ago

Api routes in non SPA application.

Posted 5 months ago by kovbo

Hello, I'm working on a project with a basic Laravel architecture. It is not a SPA, however, some views are extracted into Vue components. These components receive their data through axios get requests. For example, <user-list> component calls "/users/all/" route to receive users data, and everything works fine.

However, if I visit this route using browser, it returns an array of data.

Is it a normal practice to keep such routes accessable via browser in a non SPA application?

Please sign in or create an account to participate in this conversation.