aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-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