logged prefix for routes

This commit is contained in:
Tykayn 2019-07-01 22:03:36 +02:00
parent b6324c9138
commit 295285bb3f
2 changed files with 34 additions and 34 deletions

View File

@ -1,66 +1,66 @@
app_serie_festival: app_serie_festival:
resource: "@AppBundle/Controller/SerieFestivalController.php" resource: "@AppBundle/Controller/SerieFestivalController.php"
type: annotation type: annotation
fos_user_profile: fos_user_profile:
resource: "@FOSUserBundle/Resources/config/routing/profile.xml" resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
prefix: /profile prefix: /profile
fos_user_register: fos_user_register:
resource: "@FOSUserBundle/Resources/config/routing/registration.xml" resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
prefix: /register prefix: /register
fos_user_resetting: fos_user_resetting:
resource: "@FOSUserBundle/Resources/config/routing/resetting.xml" resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
prefix: /resetting prefix: /resetting
fos_user_change_password: fos_user_change_password:
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml" resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
prefix: /profile prefix: /profile
app: app:
resource: '@AppBundle/Controller/' resource: '@AppBundle/Controller/'
type: annotation type: annotation
## app specific stuff ## app specific stuff
app_festival: app_festival:
resource: "@AppBundle/Controller/FestivalController.php" resource: "@AppBundle/Controller/FestivalController.php"
type: annotation type: annotation
# legal info pages # legal info pages
app_legal: app_legal:
resource: "@AppBundle/Controller/LegalController.php" resource: "@AppBundle/Controller/LegalController.php"
type: annotation type: annotation
app_product_category: app_product_category:
resource: "@AppBundle/Controller/ProductCategoryController.php" resource: "@AppBundle/Controller/ProductCategoryController.php"
type: annotation type: annotation
app_product: app_product:
resource: "@AppBundle/Controller/ProductController.php" resource: "@AppBundle/Controller/ProductController.php"
type: annotation type: annotation
app_sell_record: app_sell_record:
resource: "@AppBundle/Controller/SellRecordController.php" resource: "@AppBundle/Controller/SellRecordController.php"
type: annotation type: annotation
get_my_products: get_my_products:
path: /get-my-products path: /logged/get-my-products
defaults: { _controller: AppBundle:Default:getMyProducts } defaults: { _controller: AppBundle:Default:getMyProducts }
get_my_expenses: get_my_expenses:
path: /get-my-expenses path: /logged/get-my-expenses
defaults: { _controller: AppBundle:Default:getMyExpenses } defaults: { _controller: AppBundle:Default:getMyExpenses }
save_my_expenses: save_my_expenses:
path: /save-my-expenses path: /logged/save-my-expenses
defaults: { _controller: AppBundle:Default:saveMyExpenses } defaults: { _controller: AppBundle:Default:saveMyExpenses }
add_selling: add_selling:
path: /add-selling path: /logged/add-selling
defaults: { _controller: AppBundle:Default:addSelling } defaults: { _controller: AppBundle:Default:addSelling }
fos_user: fos_user:
resource: "@FOSUserBundle/Resources/config/routing/all.xml" resource: "@FOSUserBundle/Resources/config/routing/all.xml"
# emails # emails
tktest_mail: tktest_mail:
path: /admin/test-email path: /admin/test-email
defaults: { _controller: AppBundle:Default:email } defaults: { _controller: AppBundle:Default:email }

View File

@ -36,6 +36,6 @@ security:
- { path: ^/dashboard$, role: IS_AUTHENTICATED_REMEMBERED } - { path: ^/dashboard$, role: IS_AUTHENTICATED_REMEMBERED }
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/u, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/logged, role: IS_AUTHENTICATED_REMEMBERED }
- { path: ^/admin/, role: ROLE_ADMIN } - { path: ^/admin/, role: ROLE_ADMIN }