Created
December 4, 2014 01:56
-
-
Save mberman84/a10b5e15bb208161c91c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Texthub::Application.routes.draw do | |
mount_roboto | |
mount Api, at: '/api' | |
authenticated :user do | |
root to: 'home#index', as: 'authenticated_root' | |
end | |
root 'home#homepage' | |
devise_for :admin_users, ActiveAdmin::Devise.config | |
ActiveAdmin.routes(self) | |
devise_for :users, controllers: { invitations: 'users/invitations', registrations: 'registrations', sessions: 'sessions' } | |
devise_scope :user do | |
post "/users/validate" => "registrations#validate" | |
end | |
get '/home' => 'home#homepage' | |
get '/features' => 'home#features' | |
get '/private_beta' => 'home#private_beta' | |
get '/pricing' => 'home#pricing' | |
get '/about' => 'home#about' | |
get '/contact' => 'home#contact' | |
get '/success_stories' => 'home#success_stories' | |
get '/success_story' => 'home#success_story' | |
#get '/ping' => 'ping_widgets#show' | |
#get '/ping/:uuid' => "ping_widgets#settings", :as => "by_uuid" | |
match '/ping' => 'ping_widgets#show', via: [:get, :options] | |
match '/ping/:uuid' => "ping_widgets#settings", as: :by_uuid, via: [:get, :options] | |
post '/otp' => 'one_time_passwords#create' | |
post '/otp/verify' => 'one_time_passwords#verify' | |
resources :company_leads, only: :create | |
resources :users | |
resources :ping_widgets | |
resources :ping_widget_events, only: :create | |
resources :customers do | |
get '/history' => 'customers#history', as: 'history' | |
end | |
namespace :admin do | |
resources :inbound_messages, only: [:new, :create] | |
end | |
resources :messages do | |
member do | |
post :mark_as_viewed | |
end | |
end | |
resources :mass_messages, only: [:index, :create] | |
resources :properties, only: [] do | |
collection do | |
get :values | |
end | |
end | |
resources :companies | |
resources :subscriptions | |
resource :billing_account | |
authenticate :admin_user do | |
mount Sidekiq::Web, at: '/sidekiq' | |
end | |
post '/stripe' => 'subscriptions#stripe', as: 'stripe' | |
post '/receive_message' => 'messages#receive_message', as: 'receive_message' | |
post '/receive_call' => 'calls#receive_call', as: 'receive_call' | |
post '/api_send_message' => 'messages#api_send_message', as: 'api_send_message' | |
post '/api_add_customer' => 'customers#api_add_customer', as: 'api_add_customer' | |
post '/call_callback' => 'calls#call_callback', as: 'call_callback' | |
get '/claim_customer' => 'customers#claim_customer', as: 'claim_customer' | |
get '/close_customer' => 'customers#close_customer', as: 'close_customer' | |
get '/purchase_phone_number' => 'companies#purchase_phone_number', as: 'purchase_phone_number' | |
get '/choose_area_code' => 'companies#choose_area_code', as: 'choose_area_code' | |
get '/resend_invitation' => 'users#resend_invitation', as: 'resend_invitation' | |
get '/cancel_invitation' => 'users#cancel_invitation', as: 'cancel_invitation' | |
get '/remove_team_member' => 'users#remove_team_member', as: 'remove_team_member' | |
post '/disable_onboarding_flow' => 'users#disable_onboarding_flow', as: 'disable_onboarding_flow' | |
get '/api_docs' => 'pages#api_docs', as:'api_docs' | |
get '/api_token' => 'companies#api_token', as: 'api_token' | |
get '/reset_token' => 'companies#reset_token', as: 'reset_token' | |
get '/delete_customer_property' => 'customers#delete_customer_property', as: 'delete_customer_property' | |
get '/add_customer_property' => 'customers#add_customer_property', as: 'add_customer_property' | |
get '/upload_photo' => 'users#upload_photo', as: 'upload_photo' | |
get '/call_forwarding' => 'companies#call_forwarding', as: 'call_forwarding' | |
get '/set_call_forwarding' => 'companies#set_call_forwarding', as: 'set_call_forwarding' | |
get '/phone_numbers' => 'companies#phone_numbers', as: 'phone_numbers' | |
get '/email_settings' => 'users#email_settings', as: 'email_settings' | |
get '/history' => 'companies#history', as: 'history' | |
get '/clickthrough' => 'pages#clickthrough', as: 'clickthrough' | |
get '/terms_of_service' => 'pages#terms_of_service', as: 'terms_of_service' | |
get '/privacy_policy' => 'pages#privacy_policy', as: 'privacy_policy' | |
put '/upload' => 'users#upload', as: 'upload' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment