Sha256: 8a1f91b385b568e7f908142a7fdb33cfb6c5b2a8279a3d067c1678bb0edb3e46
Contents?: true
Size: 958 Bytes
Versions: 3
Compression:
Stored size: 958 Bytes
Contents
= Change route path You can change the URL path of any Rodauth route by overriding the corresponding <tt>*_route</tt> method: plugin :rodauth do enable :login, :logout, :create_account, :reset_password # Change login route to "/signin" login_route "signin" # Change redirect when login is required to "/signin" require_login_redirect { login_path } # Change create account route to "/register" create_account_route "register" # Change password reset request route to "/reset-password/request" reset_password_request_route "reset-password/request" end If you want to add a prefix to all Rodauth routes, you should use the +prefix+ setting: plugin :rodauth do enable :login, :logout # Use /auth prefix to each Rodauth route prefix "/auth" end route do |r| r.on "auth" do # Serve Rodauth routes under the /auth branch of the routing tree r.rodauth end # ... end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rodauth-2.24.0 | doc/guides/paths.rdoc |
rodauth-2.23.0 | doc/guides/paths.rdoc |
rodauth-2.22.0 | doc/guides/paths.rdoc |