3b: Add blog page route
Add a `my_module.routing.yml` file that adds the missing route for `/blog`. This fails, and returns a 403 response code rather than the expected 200 response code.
This commit is contained in:
parent
151803382e
commit
c7ef94c0d5
7
web/modules/custom/my_module/my_module.routing.yml
Normal file
7
web/modules/custom/my_module/my_module.routing.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
blog.page:
|
||||
path: /blog
|
||||
defaults:
|
||||
_controller: Drupal\my_module\Controller\BlogPageController
|
||||
_title: Blog
|
||||
requirements:
|
||||
_permission: access content
|
Loading…
Reference in a new issue