Answer the question
In order to leave comments, you need to log in
Routing according to file path?
I have N number of controllers in the folder Controller/Api/v1/*
Let's say BrandController and ClientController
How can I make it so that the URLs are the following
/api/v1/client
/api/v1/brand
I know only such an option that you can do this:
/**
* @Route("/api/v1")
*/
class ClientController extends AbstractController
{}
api_v1:
path: /api/v1
resource: Controller/Api/v1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question