routes.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. logout:
  2. path: /logout
  3. _admin:
  4. resource: routes/sonata_admin.yaml
  5. prefix: /administration
  6. sonata_admin_redirect:
  7. path: /administration/dashboard
  8. sonata_admin_my_dashboard:
  9. path: /administration
  10. controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction
  11. defaults:
  12. route: sonata_admin_dashboard
  13. permanent: false
  14. sonata_user_admin_security_logout:
  15. path: /logout
  16. # Resources
  17. #app_document:
  18. # resource: |
  19. # alias: app.document
  20. # path: /resource/documents
  21. # form: Chamilo\CoreBundle\Form\Type\DocumentType
  22. # type: sylius.resource
  23. #app_document_index:
  24. # path: /courses/{course}/resource/documents/
  25. # methods: [GET, POST]
  26. # defaults:
  27. # _controller: Chamilo\CoreBundle\Controller\ResourceController:indexAction
  28. # _sylius:
  29. # template: ChamiloCoreBundle:Document:show.html.twig
  30. # Create a folder
  31. #app_document_create:
  32. # path: /courses/{course}/resource/documents/new
  33. # methods: [GET, POST]
  34. # defaults:
  35. # _controller: app.controller.document:createAction
  36. # _sylius:
  37. # template: ChamiloCoreBundle:Document:create.html.twig
  38. # form: Chamilo\CoreBundle\Form\Type\DocumentType
  39. # Create a document
  40. #app_document_create_document:
  41. # path: /courses/{course}/resource/documents/new_document
  42. # methods: [GET, POST]
  43. # defaults:
  44. # _controller: app.controller.document:createDocumentAction
  45. # _sylius:
  46. # template: ChamiloCoreBundle:Document:create.html.twig
  47. # form: Chamilo\CoreBundle\Form\Type\DocumentType
  48. #
  49. #app_document_show:
  50. # path: /courses/{course}/resource/documents/{id}
  51. # methods: [GET]
  52. # defaults:
  53. # _controller: app.controller.document:showAction
  54. # _sylius:
  55. # template: ChamiloCoreBundle:Document:show.html.twig
  56. #
  57. #app_document_update:
  58. # path: /courses/{course}/resource/documents/{id}/edit
  59. # methods: [GET, PUT, PATCH]
  60. # defaults:
  61. # _controller: app.controller.document:updateAction
  62. # _sylius:
  63. # template: ChamiloCoreBundle:Document:update.html.twig
  64. # form: Chamilo\CoreBundle\Form\Type\DocumentType
  65. #
  66. #app_document_delete:
  67. # path: /courses/{course}/resource/documents/{id}
  68. # methods: [DELETE]
  69. # defaults:
  70. # _controller: app.controller.document:deleteAction
  71. #admin_dashboard:
  72. # pattern: /administration/
  73. # defaults:
  74. # _controller: FrameworkBundle:Redirect:redirect
  75. # route: sonata_admin_dashboard
  76. # permanent: true # this for 301
  77. #admin_without_locale:
  78. # pattern: /administration
  79. # defaults:
  80. # _controller: FrameworkBundle:Redirect:redirect
  81. # route: sonata_admin_dashboard
  82. # permanent: true # this for 301
  83. #admin_dashboard_without_locale:
  84. # pattern: /administration/dashboard
  85. # defaults:
  86. # _controller: FrameworkBundle:Redirect:redirect
  87. # route: sonata_admin_dashboard
  88. # permanent: true
  89. #_api:
  90. # resource: routing_api.yml
  91. # prefix: /api
  92. liip_theme:
  93. resource: "@LiipThemeBundle/Resources/config/routing.xml"
  94. prefix: /theme