Hi,
I need some help with my Yii2 config.
I just want to offer a Rest api for my Yii 2 application. I saw the guide and in this default case everything is clear.
But I want some “tricky” path and url things and I don’t know how to achieve them.
First thing, my api controllers are outside my web root, like this:
- "Complete Application folder"
---- "Api"
-------- "controllers"
---- "Web root"
-------- "assets"
-------- "components"
-------- "config"
-------- "…"
Second thing is, I want my urls under the prefix "Api", like this: hp://*.myapp.de/Api/Model
Can someone help me to achieve this?
Kind regards