M
M
Marat Linberg2018-07-28 00:56:02
PHP
Marat Linberg, 2018-07-28 00:56:02

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

1 answer(s)
M
Mykola Ivashchuk, 2018-07-29
@mykolaim

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 question

Ask a Question

731 491 924 answers to any question