mirror of
https://github.com/elyby/accounts.git
synced 2024-12-02 11:41:05 +05:30
20 lines
471 B
PHP
20 lines
471 B
PHP
|
<?php
|
||
|
namespace api\modules\internal;
|
||
|
|
||
|
use yii\base\BootstrapInterface;
|
||
|
|
||
|
class Module extends \yii\base\Module implements BootstrapInterface {
|
||
|
|
||
|
public $id = 'internal';
|
||
|
|
||
|
/**
|
||
|
* @param \yii\base\Application $app the application currently running
|
||
|
*/
|
||
|
public function bootstrap($app) {
|
||
|
$app->getUrlManager()->addRules([
|
||
|
'/internal/<controller>/<accountId>/<action>' => "{$this->id}/<controller>/<action>",
|
||
|
], false);
|
||
|
}
|
||
|
|
||
|
}
|