Laravel API Routes not found


I am trying to deploy laravel with nginx all my routes are working expect api routes i try to clear cache or api routes laravel cache but it didn’t work.

Can you please help me

Adding the answer here for posterity since it was also sent through our direct support channel.

We released an update to new Laravel apps a couple days ago to redirect forward slashes.

For laravel apps added prior to this update, you can update the site’s NGINX config with the following directive:

location ~ ^(.+)/$ {
      return 301 $scheme://$host$1;