I just have followed two tutorials on youtube:
and
And results was “You are not authorized to access this page. “
In routing file I have made the correct indentation for both modules:
my_module.routing: path: ‘/admin/structure/my_module’ defaults: _title: ‘My module’ _content: ‘\Drupal\my_module\MyModuleController::test’ requirements: _permisions: ‘access administracion pages’
Link for “my_module” looks: www.mysite.com/drupal8/admin/structure/my_module
hello_world: path: ‘/hello/world’ defaults: _controller: ‘Drupal\hello_world\Controller\HelloWorldController::hello’ requirements: _permisions: ‘access content’
Link for “hello_world” looks: www.mysite.com/drupal8/hello/world