Sha256: 0d79c442b9c183ce23705a824da4af5304d22180c75bd1712e9ac355f2b7f76a
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
<%= package_name %>::Engine.routes.draw do root to: "dashboard#index" # add custom app routes here end # draw routes for registered resources <%= package_name %>::Engine.draw_resource_routes # mount our app Rails.application.routes.draw do <%- if rodauth_account.present? -%> constraints Rodauth::Rails.authenticate(:<%= rodauth_account %>) do mount <%= package_name %>::Engine, at: "/<%= name.underscore %>" end <%- else -%> mount <%= package_name %>::Engine, at: "/<%= name.underscore %>" <%- end -%> end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plutonium-0.8.0 | lib/generators/pu/pkg/app/templates/config/routes.rb.tt |