#creating api routes

5 messages · Page 1 of 1 (latest)

lost slate
#

Hi I need to make 2 maybe 3 api routes for a third party. The third party will make a request to those routes and I need to return something. Sounds easy to me, but is it mandatory to put those in the api.php or can I also place those routes within my web.php?

wind trout
#

Not really, but why would you not want to separate API routes from standard web routes, If you read the comment in each you'll see what the difference is

fading ruin
floral jay
lost slate