Human readable URLs

In order to get human readable URLs for TYPO3 9 and greater, you can use the following snippet.ing snippet.

routeEnhancers:
  AdventskalenderPlugin:
    type: Extbase
    extension: AdventskalenderPro
    plugin: Lottery
    routes:
      - routePath: '/confirm/{confirm_hash}'
        _controller: 'Lottery::confirmEmail'
        _arguments:
          confirm_hash: hash
      - routePath: '/password/{password_hash}'
        _controller: 'Lottery::passwordReset'
        _arguments:
          password_hash: hash
    defaultController: 'Lottery::init'