From c7ef94c0d5f9bce459a9704ffb08954a8487445a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 19 Mar 2020 20:48:28 +0000 Subject: [PATCH] 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. --- web/modules/custom/my_module/my_module.routing.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 web/modules/custom/my_module/my_module.routing.yml diff --git a/web/modules/custom/my_module/my_module.routing.yml b/web/modules/custom/my_module/my_module.routing.yml new file mode 100644 index 0000000..9683277 --- /dev/null +++ b/web/modules/custom/my_module/my_module.routing.yml @@ -0,0 +1,7 @@ +blog.page: + path: /blog + defaults: + _controller: Drupal\my_module\Controller\BlogPageController + _title: Blog + requirements: + _permission: access content