diff options
author | elijah <elijah@riseup.net> | 2013-12-29 19:25:05 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-12-29 19:25:05 -0800 |
commit | f619178085d0c2729e275fa4f46f9cd981189d3e (patch) | |
tree | e6c715c21723e54d2742bf97238e2e01abe8fc2a /config | |
parent | 314d6cce723558497165103658cbf013f1eb8e9a (diff) |
Return 'provider.json' via a controller, to better be able to control the response headers (in particular, 'X-Minimum-Client-Version'). It must now be placed in config/provider/provider.json
Diffstat (limited to 'config')
-rw-r--r-- | config/defaults.yml | 2 | ||||
-rw-r--r-- | config/routes.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/config/defaults.yml b/config/defaults.yml index 98dc334..6e14623 100644 --- a/config/defaults.yml +++ b/config/defaults.yml @@ -48,6 +48,8 @@ common: &common default_locale: :en available_locales: - :en + minimum_client_version: "0.5" + service_levels: &service_levels service_levels: 0: diff --git a/config/routes.rb b/config/routes.rb index 12bfe93..b3e24b9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,4 +6,5 @@ LeapWeb::Application.routes.draw do root :to => "home#index" get '(:locale)' => 'home#index', :locale => MATCH_LOCALE, :as => 'home' + get '/provider.json' => 'static_config#provider' end |