Sha256: 3a8e5317c8a17307af6d7f4106e013a0fe55b3e3c3397cf6a2272ded869556d4
Contents?: true
Size: 853 Bytes
Versions: 20
Compression:
Stored size: 853 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 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
20 entries across 20 versions & 1 rubygems