Configure routes using annotation

This commit is contained in:
2023-08-02 16:26:25 +02:00
parent 4b20db7a9c
commit 009a0326d9
55 changed files with 215 additions and 772 deletions

View File

@@ -2,38 +2,6 @@ chill_main_controllers:
resource: '../Controller/'
type: annotation
chill_main_admin_permissionsgroup:
resource: "@ChillMainBundle/config/routes/permissionsgroup.yaml"
prefix: "{_locale}/admin/permissionsgroup"
chill_main_admin_scope:
resource: "@ChillMainBundle/config/routes/scope.yaml"
prefix: "{_locale}/admin/scope"
chill_main_admin:
resource: "@ChillMainBundle/config/routes/center.yaml"
prefix: "{_locale}/admin/center"
chill_main_exports:
resource: "@ChillMainBundle/config/routes/exports.yaml"
prefix: "{_locale}/exports"
chill_postal_code:
resource: "@ChillMainBundle/config/routes/postal-code.yaml"
prefix: "{_locale}/postal-code"
chill_password:
resource: "@ChillMainBundle/config/routes/password.yaml"
prefix: "{_locale}/password"
chill_password_recover:
resource: "@ChillMainBundle/config/routes/password_recover.yaml"
prefix: "public/{_locale}/password"
chill_main_notification:
resource: "@ChillMainBundle/config/routes/notification.yaml"
prefix: "{_locale}/notification"
chill_crud:
resource: "@ChillMainBundle"
type: CRUD
@@ -45,50 +13,6 @@ root:
path: /homepage
permanent: false
chill_main_homepage_without_locale:
path: /homepage
controller: Chill\MainBundle\Controller\DefaultController::indexWithoutLocaleAction
chill_main_homepage:
path: /{_locale}/homepage
controller: Chill\MainBundle\Controller\DefaultController::indexAction
# chill_main_admin_central:
# path: /{_locale}/admin
# controller: Chill\MainBundle\Controller\AdminController::indexAction
# options:
# menus:
# admin_permissions:
# order: 0
# label: Main admin menu
#
chill_main_search:
path: /{_locale}/search.{_format}
controller: Chill\MainBundle\Controller\SearchController::searchAction
format: 'html' # sf4 check
requirements:
_format: html|json
chill_main_search_global:
path: '/api/1.0/search.{_format}'
controller: Chill\MainBundle\Controller\SearchController::searchApi
format: 'json'
requirements:
_format: 'json'
chill_main_advanced_search:
path: /{_locale}/search/advanced/{name}
controller: Chill\MainBundle\Controller\SearchController::advancedSearchAction
chill_main_advanced_search_list:
path: /{_locale}/search/advanced
controller: Chill\MainBundle\Controller\SearchController::advancedSearchListAction
login:
path: /login
controller: Chill\MainBundle\Controller\LoginController::loginAction
login_check:
path: /login_check

View File

@@ -1,21 +0,0 @@
admin_center:
path: /
controller: Chill\MainBundle\Controller\CenterController::indexAction
admin_center_new:
path: /new
controller: Chill\MainBundle\Controller\CenterController::newAction
admin_center_create:
path: /create
controller: Chill\MainBundle\Controller\CenterController::createAction
methods: POST
admin_center_edit:
path: /{id}/edit
controller: Chill\MainBundle\Controller\CenterController::editAction
admin_center_update:
path: /{id}/update
controller: Chill\MainBundle\Controller\CenterController::updateAction
methods: [POST, PUT]

View File

@@ -1,17 +0,0 @@
chill_main_export_index:
path: /
controller: Chill\MainBundle\Controller\ExportController::indexAction
chill_main_export_new:
path: /new/{alias}
controller: Chill\MainBundle\Controller\ExportController::newAction
chill_main_export_generate:
path: /generate/{alias}
controller: Chill\MainBundle\Controller\ExportController::generateAction
methods: [GET]
chill_main_export_download:
path: /download/{alias}
controller: Chill\MainBundle\Controller\ExportController::downloadResultAction
methods: [ GET ]

View File

@@ -1,4 +0,0 @@
change_my_password:
path: /edit
controller: Chill\MainBundle\Controller\PasswordController::userPasswordAction

View File

@@ -1,15 +0,0 @@
password_recover:
path: /recover
controller: Chill\MainBundle\Controller\PasswordController::recoverAction
password_request_recover:
path: /request-recover
controller: Chill\MainBundle\Controller\PasswordController::requestRecoverAction
password_request_recover_confirm:
path: /request-confirm
controller: Chill\MainBundle\Controller\PasswordController::requestRecoverConfirmAction
password_request_recover_changed:
path: /request-changed
controller: Chill\MainBundle\Controller\PasswordController::changeConfirmedAction

View File

@@ -1,35 +0,0 @@
admin_permissionsgroup:
path: /
controller: Chill\MainBundle\Controller\PermissionsGroupController::indexAction
admin_permissionsgroup_show:
path: /{id}/show
controller: Chill\MainBundle\Controller\PermissionsGroupController::showAction
admin_permissionsgroup_new:
path: /new
controller: Chill\MainBundle\Controller\PermissionsGroupController::newAction
admin_permissionsgroup_create:
path: /create
controller: Chill\MainBundle\Controller\PermissionsGroupController::createAction
methods: POST
admin_permissionsgroup_edit:
path: /{id}/edit
controller: Chill\MainBundle\Controller\PermissionsGroupController::editAction
admin_permissionsgroup_update:
path: /{id}/update
controller: Chill\MainBundle\Controller\PermissionsGroupController::updateAction
methods: [POST, PUT]
admin_permissionsgroup_delete_role_scope:
path: /{pgid}/delete_link_role_scope/{rsid}
controller: Chill\MainBundle\Controller\PermissionsGroupController::deleteLinkRoleScopeAction
methods: [DELETE]
admin_permissionsgroup_add_role_scope:
path: /{id}/add_link_role_scope
controller: Chill\MainBundle\Controller\PermissionsGroupController::addLinkRoleScopeAction
methods: [PUT]

View File

@@ -1,4 +0,0 @@
chill_main_postal_code_search:
path: /search
controller: Chill\MainBundle\Controller\PostalCodeController::searchAction

View File

@@ -1,21 +0,0 @@
admin_scope:
path: /
controller: Chill\MainBundle\Controller\ScopeController::indexAction
admin_scope_new:
path: /new
controller: Chill\MainBundle\Controller\ScopeController::newAction
admin_scope_create:
path: /create
controller: Chill\MainBundle\Controller\ScopeController::createAction
methods: POST
admin_scope_edit:
path: /{id}/edit
controller: Chill\MainBundle\Controller\ScopeController::editAction
admin_scope_update:
path: /{id}/update
controller: Chill\MainBundle\Controller\ScopeController::updateAction
methods: [POST, PUT]