mirror of
https://github.com/elyby/accounts.git
synced 2026-11-23 07:43:21 +05:30
На GitHub подкинули идею, как сделать поддержку http и https одновременно
This commit is contained in:
1 parent
ad058664db
commit
1254369d3e
2 files changed
+4
-8
No files matched your search
@@ -39,8 +39,7 @@ class Module extends \yii\base\Module implements BootstrapInterface {
|
||||
*/
|
||||
public function bootstrap($app) {
|
||||
$app->getUrlManager()->addRules([
|
||||
"http://$this->host/$this->id/auth/<action>" => "$this->id/authentication/<action>",
|
||||
"https://$this->host/$this->id/auth/<action>" => "$this->id/authentication/<action>",
|
||||
"<protocol:http|https>://$this->host/$this->id/auth/<action>" => "$this->id/authentication/<action>",
|
||||
], false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user