aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMarc Florisson2012-12-03 17:14:25 +0100
committerMarc Florisson2012-12-03 17:14:25 +0100
commitb07166f27d64a4847ab2a1c439cb94b522b876e4 (patch)
tree888684a427895a5363e33ec4a4ad8bd8e2c984d4 /config
parent966a9f62b3ffd8029c0104cee0d63d98582d95d9 (diff)
downloadchouette-core-b07166f27d64a4847ab2a1c439cb94b522b876e4.tar.bz2
add some specs
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index c6569a785..344426c6c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -7,10 +7,17 @@ ChouetteIhm::Application.routes.draw do
namespace :api do
namespace :v1 do
- resources :networks
- resources :lines do
- resources :routes
+ resources :networks, :only => [:index, :show]
+ resources :lines, :only => [:index, :show] do
+ resources :journey_patterns, :only => [:index, :show]
+ resources :routes, :only => [:index, :show] do
+ resources :journey_patterns, :only => [:index, :show]
+ resources :stop_areas, :only => [:index, :show]
+ end
end
+ resources :routes, :only => :show
+ resources :journey_patterns, :only => :show
+ resources :stop_areas, :only => :show
end
end