Closed andyrue closed 2 years ago
When using setting route prefix, you also need to change
r.rodauth
to
r.on "auth" do
r.rodauth
end
In the route
block. This is required for Roda to properly route the prefixed routes.
I've been discussing with Jeremy the possibility of Rodauth automatically handling this for you, but so far we haven't agreed on a solution.
D'oh! Thank you.
It seems when configuring the RodAuth route prefix with
prefix "/auth"
, it's not working. I added the prefix torodauth_app.rb
, and the routes then appear to be correct when runningrails rodauth:routes
, but performing a request to/auth/login
I get No route matches"/auth/login"
. POSTing to"/login"
does work, even though the rodauth routes list/auth/**
. Restarting the server doesn't make a difference. Do I need to do something different to change where the rodauth routes are mounted?