I have the following problem. In mein router.ex I defined folowing routes:
post "/users/register", UserRegistrationController, :create
get "/users/log_in", UserSessionController, :new
When I write: mix phx.routes in the terminal he answered me:
user_session_path GET /users/log_in InESphxWeb.InESphxWeb.UserSessionController :new
user_registration_path POST /users/register InESphxWeb.UserRegistrationController :create
The first route is wrong. It drives me crazy. I do not know why he is generating InESphxWeb twice. The second routing is OK. But why InESphxWeb twice? Of course it is the wrong path and my app run into panic mode. I can not find, where to change anything to get the correct path. Please help me.
Can you double-check your router.ex for another route that goes to /users/log_in? The order is important, and phx.routes is showing a different one than the declarations.