Search code examples
laravelnginxforge

Can not access APIs | Laravel


I have three APIs. When i do php artisan route:list APIS are available there. enter image description here

But only the third api is accessable from postman. can not access first two. they returns 404 enter image description here

My application is deployed in digital ocean using Nginx!


Solution

  • Solved it! /etc/nginx/sites-enabled/catch-all was responsible for denying the request. I had to configured it correctly!