@toni23 Use authentication and authorisation to protect your routes.
Laravel API and fetch with VueJS
Hello everyone..first i want to sorry for my bad English. I have one maybe stupid question , but i want to ask so i understand. I create with Laravel API endpoints for auth with jwt token and for users where i fetch all users. With VueJS i fetch all APIs i login/ logout everything works fine . So for example with my user which i create i have role Administrator and in my Vue application i have route /admin where with guard i check if my role is administrator and i access the page. So for example i want in this page to block some user just change one of users fields from active: true to false and my question is how i can protect this API, because when i check in network in my browser and application i can find this API address and i can access from another app.
I hope you understand my question :)
Please or to participate in this conversation.