Sha256: 3bbb47bed288d354d1f15f48edd512a999c89cd71ad77e423b0c497293d08215
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true Stenographer::Engine.routes.draw do resources :links resources :changes, only: %i[index show], constraints: Stenographer::RoutingConstraints::ViewerOnly.new resources :changes, only: %i[create] # Created separately because we don't want it behind the routing constraints scope '/admin' do get '/' => 'admin#index', as: :admin_index, constraints: Stenographer::RoutingConstraints::ManagerOnly.new end namespace :admin do resources :authentications, only: %i[index show destroy], constraints: Stenographer::RoutingConstraints::ManagerOnly.new resources :changes, constraints: Stenographer::RoutingConstraints::ManagerOnly.new resources :outputs, constraints: Stenographer::RoutingConstraints::ManagerOnly.new resources :links, constraints: Stenographer::RoutingConstraints::ManagerOnly.new end get '/auth/:provider', to: 'authentications#create', as: :authentication # Used so we can access authentication_path('provider') get '/auth/:provider/callback', to: 'authentications#create' get '/auth/failure', to: 'authentications#failure' root 'changes#index', constraints: Stenographer::RoutingConstraints::ViewerOnly.new end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stenographer-rails-0.7.4 | config/routes.rb |
stenographer-rails-0.7.3 | config/routes.rb |
stenographer-rails-0.7.1 | config/routes.rb |
stenographer-rails-0.7.0 | config/routes.rb |