Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to prevent react-router from API routes in laravel?

im writing an app using laravel as backend and react as view. I'm fetching data using '/api/some-data' and it's an laravel route. The problem is im getting an error: not found (404). Also when I type this as url beign on my home page (react) react-router wants to render this. How Can I prevent that when url match /api/* its gonna point on server api, not client.

Comments