app/library/Services.php: load router settings from config file.
This commit is contained in:
parent
ca90ec30fb
commit
a8a448331e
2 changed files with 71 additions and 50 deletions
54
app/config/routes.yml
Normal file
54
app/config/routes.yml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
router:
|
||||
removeExtraSlashes: true
|
||||
routes:
|
||||
home-route:
|
||||
pattern: '/'
|
||||
path:
|
||||
controller: index
|
||||
action: index
|
||||
about-route:
|
||||
pattern: '/about'
|
||||
path:
|
||||
controller: index
|
||||
action: about
|
||||
cb-created:
|
||||
pattern: '/callback/created/{id}'
|
||||
path:
|
||||
controller: callback
|
||||
action: created
|
||||
cb-endpoint:
|
||||
pattern: '/cb/{id}'
|
||||
path:
|
||||
controller: callback
|
||||
action: endpoint
|
||||
login:
|
||||
pattern: '/login'
|
||||
path:
|
||||
controller: auth
|
||||
action: index
|
||||
logout:
|
||||
pattern: '/logout'
|
||||
path:
|
||||
controller: auth
|
||||
action: logout
|
||||
oauth:
|
||||
pattern: '/login/{strategy:([a-z]+)}/:params'
|
||||
path:
|
||||
controller: auth
|
||||
action: oauth
|
||||
oauth-disconnect:
|
||||
pattern: '/oauth/{provider:([a-z]+)}/disconnect'
|
||||
path: 'User::oauthdisconnect'
|
||||
oauth-disconnect-confirm:
|
||||
pattern: '/oauth/{provider:([a-z]+)}/disconnect/{confirm}'
|
||||
path: 'User::oauthdisconnect'
|
||||
user-settings:
|
||||
pattern: '/settings'
|
||||
path:
|
||||
controller: user
|
||||
action: settings
|
||||
activation-link:
|
||||
path:
|
||||
controller: user
|
||||
action: activationlink
|
||||
Reference in a new issue