routes.yaml 776 B

1234567891011121314151617181920212223242526272829
  1. #index:
  2. # path: /
  3. # controller: App\Controller\DefaultController::index
  4. #
  5. #index:
  6. # path: /
  7. # controller: App\Controller\DefaultController::index
  8. #
  9. #hello:
  10. # path: /hello/{name}
  11. # controller: App\Controller\DefaultController::hello
  12. #
  13. #hello-json:
  14. # path: /json/{name}
  15. # controller: App\Controller\DefaultController::helloJson
  16. #
  17. # Routing is never automatically imported in Symfony. If you want to include the
  18. # routes from any bundle, then they must be manually imported from somewhere in
  19. # your application (e.g. config/routes.yaml).
  20. demo_controllers_annotations:
  21. resource: '@OsinetDemoBundle/Controller/'
  22. type: 'annotation'
  23. prefix: 'demo'
  24. demo_controllers_file:
  25. resource: '@OsinetDemoBundle/Resources/config/routes.yml'
  26. type: 'yaml'
  27. prefix: 'demo'