class ActionDispatch::Routing::Mapper
Public Instance Methods
prelaunch_routes()
click to toggle source
# File lib/prelaunch/routing.rb, line 3 def prelaunch_routes return unless Prelaunch.valid_env? token = Prelaunch::TokenConstraint.new get "#{Prelaunch.logout_path}" , to: 'prelaunch/prelaunch#logout', as: '' get "#{Prelaunch.verify_path}/:token", to: 'prelaunch/prelaunch#verify', constraints: token contraint = Prelaunch::SessionConstraint.new get '*path', to: 'prelaunch/prelaunch#redirect', constraints: contraint get '/' , to: 'prelaunch/prelaunch#index' , constraints: contraint end