diff options
| author | Teddy Wing | 2018-03-05 17:06:26 +0100 | 
|---|---|---|
| committer | Johan Van Ryseghem | 2018-03-07 13:19:41 +0100 | 
| commit | 3dea399922f40eb6afeca9f08910ab91cddeefea (patch) | |
| tree | 872452c12f4f34a6235dc7693c7565f7fca3337d /config/routes.rb | |
| parent | c60bf1b64f45b9ffb67a47aba18ea01968a1207c (diff) | |
| download | chouette-core-3dea399922f40eb6afeca9f08910ab91cddeefea.tar.bz2 | |
Change route to AutocompleteLinesController
Johan recommended not putting it in a separate `/autocomplete...` route,
but instead to use `/referentials/4/lines/autocomplete` to be more
RESTful. Makes perfect sense.
Refs #5889
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/config/routes.rb b/config/routes.rb index dc75bec11..b6934936b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -41,7 +41,6 @@ ChouetteIhm::Application.routes.draw do        post :validate      end -    resources :autocomplete_lines, only: :index      resources :autocomplete_stop_areas, only: [:show, :index] do        get 'around', on: :member      end @@ -58,6 +57,8 @@ ChouetteIhm::Application.routes.draw do      match 'lines' => 'lines#destroy_all', :via => :delete      resources :lines, controller: "referential_lines", except: :index do +      get :autocomplete, on: :collection, to: 'autocomplete_lines#index' +        resource :footnotes, controller: "line_footnotes"        delete :index, on: :collection, action: :delete_all        collection do | 
