20 lines
420 B
Ruby
20 lines
420 B
Ruby
Vidpush::Application.routes.draw do
|
|
devise_for :admins
|
|
if Rails.env.production?
|
|
devise_for :users, :controllers => {registrations: "registrations"}
|
|
else
|
|
devise_for :users
|
|
end
|
|
|
|
root to: "campaigns#index"
|
|
|
|
resources :campaigns, param: :listingcode do
|
|
resources :videolistings, param: :videocode do
|
|
member do
|
|
get 'publish', defaults: { :format => 'json' }
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|