evstevemd
(Stefano Mtangoo)
21
I believe the base URL have to change also somehow. Or the pattern for that URL added to URL Manager.
Once you register a module named v1
like below, Yii allows you to automatically access it as:
localhost/basic/v1/<controller>/<action> (for a basic app with prettyUrl set to true)
'modules' => [
'v1' => [
'class' => 'app\modules\api\v1\Module', // the namespaced Module class
]
]