Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Jul 27, 2023
1 parent 654008d commit a98c206
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/config/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@

'urlManager' => [
'rules' => [

'u' => 'cms/user/index',
'u/<username>' => 'cms/user/view',
'u/<username>/<action>' => 'cms/user/<action>',

'~<_a:(login|logout|register|forget|reset-password|approve-email)>' => 'cms/auth/<_a>',

'skeeks-cms' => 'cms/cms/index',
'skeeks-cms/<action>' => 'cms/cms/<action>',

'favicon.<extension:\w+>' => '/cms/favicon/on-request',

"image-preview" => ["class" => 'skeeks\cms\components\urlRules\UrlRuleImagePreview'],
"storage-file" => ["class" => 'skeeks\cms\components\urlRules\UrlRuleStorageFile'],

[
'class' => \skeeks\cms\components\urlRules\UrlRuleSavedFilter::class
],

'~search' => 'cmsSearch/result/index',
'content-element' => [
'class' => \skeeks\cms\components\urlRules\UrlRuleContentElement::class,
Expand Down

0 comments on commit a98c206

Please sign in to comment.