Answer the question
In order to leave comments, you need to log in
How to make routing for Yii2 with version passing in Accept?
Hello.
I am making a restful api on yii2.
How to make it so that the router goes to the v1 or v2 module when passing the required version in the Accept header?
There is a dock here: https://www.yiiframework.com/doc/guide/2.0/en/rest...
It works with passing the version to the url, but not with Accept.
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