vidpush/config/routes.rb

15 lines
314 B
Ruby
Raw Normal View History

2014-04-07 18:41:34 +00:00
Vidpush::Application.routes.draw do
2014-04-08 19:27:38 +00:00
devise_for :admins
if Rails.env.production?
devise_for :users, :controllers => {registrations: "registrations"}
else
2014-04-15 17:04:58 +00:00
devise_for :users
end
2014-04-08 19:27:38 +00:00
root to: "campaigns#index"
2014-04-07 18:41:34 +00:00
resources :campaigns, param: :clientid
resources :videolistings, param: :videocode
2014-04-07 18:41:34 +00:00
end