aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMarc Florisson2012-12-05 18:32:07 +0100
committerMarc Florisson2012-12-05 18:32:07 +0100
commitfdd87a8e14d3fcbf0f2fd91d6f2280e0128c73cf (patch)
tree2dfc14269959e49f352fd84233ea88d635926ed8 /config
parent2570573d472010249b753e404c6cad003a78ad39 (diff)
downloadchouette-core-fdd87a8e14d3fcbf0f2fd91d6f2280e0128c73cf.tar.bz2
add more controllers in api/V1
Diffstat (limited to 'config')
-rw-r--r--config/initializers/rabl_config.rb4
-rw-r--r--config/routes.rb5
2 files changed, 9 insertions, 0 deletions
diff --git a/config/initializers/rabl_config.rb b/config/initializers/rabl_config.rb
new file mode 100644
index 000000000..5e878de29
--- /dev/null
+++ b/config/initializers/rabl_config.rb
@@ -0,0 +1,4 @@
+Rabl.configure do |config|
+ config.include_json_root = false
+end
+
diff --git a/config/routes.rb b/config/routes.rb
index 344426c6c..003468cc1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -7,10 +7,14 @@ ChouetteIhm::Application.routes.draw do
namespace :api do
namespace :v1 do
+ resources :time_tables, :only => [:index, :show]
+ resources :connection_links, :only => [:index, :show]
+ resources :companies, :only => [:index, :show]
resources :networks, :only => [:index, :show]
resources :lines, :only => [:index, :show] do
resources :journey_patterns, :only => [:index, :show]
resources :routes, :only => [:index, :show] do
+ resources :vehicle_journeys, :only => [:index, :show]
resources :journey_patterns, :only => [:index, :show]
resources :stop_areas, :only => [:index, :show]
end
@@ -18,6 +22,7 @@ ChouetteIhm::Application.routes.draw do
resources :routes, :only => :show
resources :journey_patterns, :only => :show
resources :stop_areas, :only => :show
+ resources :vehicle_journeys, :only => :show
end
end