Answer the question
In order to leave comments, you need to log in
API routing, how to make links like /api.methodName?params?
Does the API use routing?
How to make links like /api.methodName?params ? Or rather, I know how to do it, but how to do it right, how is it done for you? If it's not difficult, a snippet of your code)
Answer the question
In order to leave comments, you need to log in
You can use any library for routing
, for example: https://github.com/dannyvankooten/AltoRouter
PS or even better, take any microframework (Lumen for example) and not invent bicycles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question