Create a new module like the one in the first recipe. We will refer to the module as mymodule throughout the recipe. Use your module's name in the following recipe as appropriate.
This recipe also modifies a route defined in the module. We will refer to this route as mymodule.mypage. Modify the appropriate path in your module's routing.yml file.