I am writing an application with the ability to register and enter through a regular HTML form.
On the main page of the application there will be corresponding buttons, I want the user to click on them at xxx.com/registration and xxx.com/login respectively, where the new form with fields, buttons will be friends, everything.
But there is a problem, in order to access the method that returns this same form, you need to write a URL of this type: xxx.com/registration/registration or xxx.com/login/login , that is, contact the controller, and then the method .
QUESTION: How to make it so that you do not need to specify the name of the method in the URL, thereby writing such ugly ways xxx.com/registration/registration , how to make it so that you only need to contact the controller xxx.com/registration , and then loaded right shape?
Index. - Igor