This commit is contained in:
Divyanshu Mehta 2017-07-04 08:08:55 +00:00 • committed by GitHub
commit 4a624f10eb
6 changed files with 73 additions and 3 deletions

View file

@ -1,3 +1,4 @@
require 'root_route_constraint'
Osem::Application.routes.draw do
if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
@ -152,6 +153,8 @@ Osem::Application.routes.draw do
end
get '/admin' => redirect('/admin/conferences')
constraints RootRouteConstraint.new do
get '/' => 'conferences#current'
end
root to: 'conferences#index', via: [:get, :options]
end