vidpush/config/routes.rb

20 lines
420 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
2014-04-24 18:09:21 +00:00
resources :campaigns, param: :listingcode do
2014-04-24 19:17:23 +00:00
resources :videolistings, param: :videocode do
member do
2014-04-25 20:35:42 +00:00
get 'publish', defaults: { :format => 'json' }
2014-04-24 19:17:23 +00:00
end
end
2014-04-25 20:35:42 +00:00
2014-04-24 18:09:21 +00:00
end
2014-04-07 18:41:34 +00:00
end