They can be overridden, the same way you would override routes normally in Phoenix:
defmodule MyAppWeb.Router do
use MyAppWeb, :router
use Pow.Phoenix.Router
# ...
scope "/", Pow.Phoenix, as: "pow" do
get "/sign_up", RegistrationController, :new
post "/sign_up", RegistrationController, :create
get "/sign_in", SessionController, :new
post "/sign_in", SessionController, :create
end
scope "/" do
pow_routes()
end
# ...
end
How to use custom route paths
From: https://github.com/danschultzer/pow/issues/248#issuecomment-521225322
How to remove a route
From: https://github.com/danschultzer/pow/issues/254#issuecomment-523232259