summaryrefslogtreecommitdiff
path: root/config/routes.rb
blob: f8f0c26495ca3ba5f80787e0d7b32ddad07cef6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
LeapWeb::Application.routes.draw do
  #
  # Please do not use root_path or root_url. Use home_path and home_url instead,
  # so that the path will be correctly prefixed with the locale.
  #
  root :to => "home#index"
  get '(:locale)' => 'home#index', :locale => MATCH_LOCALE, :as => 'home'

  scope "(:locale)", :locale => MATCH_LOCALE, :controller => 'pages', :action => 'show' do
    get 'privacy-policy', :as => 'privacy_policy'
    get 'terms-of-service', :as => 'terms_of_service'
    get 'about', :as => 'about'
    get 'contact', :as => 'contact'
    get 'pricing', :as => 'pricing'
  end

  get '/provider.json' => 'static_config#provider'
end