Answer the question
In order to leave comments, you need to log in
Why in yii2 advanced API folder is not accessible by link?
I created an api folder using the backend folder, deleted everything unnecessary from the config, session cache, etc.
In general, I did everything according to this guide
In common/botstrap.php I registered an alias
Yii::setAlias('@api', dirname(dirname(__DIR__)) . '/api');
include:
- common
- frontend
- backend
- api
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