ENHANCEMENT: Using less code in routes
This commit is contained in:
parent
24caa862b8
commit
c372a780c7
@ -1,7 +1,6 @@
|
|||||||
default:
|
default:
|
||||||
path: '/'
|
path: '/'
|
||||||
defaults:
|
controller: App\Controller\SecurityController::loginAction
|
||||||
_controller: App\Controller\SecurityController::loginAction
|
|
||||||
|
|
||||||
login_check:
|
login_check:
|
||||||
path: '/login_check'
|
path: '/login_check'
|
||||||
@ -11,34 +10,29 @@ logout:
|
|||||||
|
|
||||||
health:
|
health:
|
||||||
path: '/health'
|
path: '/health'
|
||||||
defaults:
|
controller: App\Controller\SiteController::healthAction
|
||||||
_controller: App\Controller\SiteController::healthAction
|
|
||||||
|
|
||||||
favicon:
|
favicon:
|
||||||
path: '/favicon.ico'
|
path: '/favicon.ico'
|
||||||
defaults:
|
controller: App\Controller\SiteController::faviconAction
|
||||||
_controller: App\Controller\SiteController::faviconAction
|
|
||||||
|
|
||||||
default_locale:
|
default_locale:
|
||||||
path: '/{_locale}'
|
path: '/{_locale}'
|
||||||
defaults:
|
controller: App\Controller\SecurityController::loginAction
|
||||||
_controller: App\Controller\SecurityController::loginAction
|
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: '/{_locale}/login'
|
path: '/{_locale}/login'
|
||||||
defaults:
|
controller: App\Controller\SecurityController::loginAction
|
||||||
_controller: App\Controller\SecurityController::loginAction
|
|
||||||
|
|
||||||
job_index:
|
job_index:
|
||||||
path: '/{_locale}/job'
|
path: '/{_locale}/job'
|
||||||
defaults:
|
controller: App\Controller\JobController::defaultAction
|
||||||
_controller: App\Controller\JobController::defaultAction
|
|
||||||
|
|
||||||
job_view:
|
job_view:
|
||||||
path: '/{_locale}/job/{id}/{all}'
|
path: '/{_locale}/job/{id}/{all}'
|
||||||
methods: [ 'GET' ]
|
methods: [ 'GET' ]
|
||||||
|
controller: App\Controller\JobController::jobAction
|
||||||
defaults:
|
defaults:
|
||||||
_controller: App\Controller\JobController::jobAction
|
|
||||||
all: false
|
all: false
|
||||||
requirements:
|
requirements:
|
||||||
id: \d+
|
id: \d+
|
||||||
@ -47,26 +41,22 @@ job_view:
|
|||||||
job_delete:
|
job_delete:
|
||||||
path: '/{_locale}/job/{id}'
|
path: '/{_locale}/job/{id}'
|
||||||
methods: [ 'DELETE' ]
|
methods: [ 'DELETE' ]
|
||||||
defaults:
|
controller: App\Controller\JobController::jobAction
|
||||||
_controller: App\Controller\JobController::jobAction
|
|
||||||
requirements:
|
requirements:
|
||||||
id: \d+
|
id: \d+
|
||||||
|
|
||||||
job_edit:
|
job_edit:
|
||||||
path: '/{_locale}/job/{id}/edit'
|
path: '/{_locale}/job/{id}/edit'
|
||||||
defaults:
|
controller: App\Controller\JobController::editAction
|
||||||
_controller: App\Controller\JobController::editAction
|
|
||||||
requirements:
|
requirements:
|
||||||
id: \d+
|
id: \d+
|
||||||
|
|
||||||
job_runnow:
|
job_runnow:
|
||||||
path: '/{_locale}/job/{id}/runnow'
|
path: '/{_locale}/job/{id}/runnow'
|
||||||
defaults:
|
controller: App\Controller\JobController::runNowAction
|
||||||
_controller: App\Controller\JobController::runNowAction
|
|
||||||
requirements:
|
requirements:
|
||||||
id: \d+
|
id: \d+
|
||||||
|
|
||||||
job_add:
|
job_add:
|
||||||
path: '/{_locale}/job/add'
|
path: '/{_locale}/job/add'
|
||||||
defaults:
|
controller: App\Controller\JobController::addAction
|
||||||
_controller: App\Controller\JobController::addAction
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user