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