diff options
| author | Teddy Wing | 2017-11-07 16:01:33 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-13 17:52:54 +0100 |
| commit | 089f3d3268aa73acdb162a5479740bb2d36aff67 (patch) | |
| tree | 4dfd681f63dd8b8c01989f6981182ce2c9cb98a6 /config | |
| parent | d3c747d149046a864f3be69daf03b2393ca53dc6 (diff) | |
| download | chouette-core-089f3d3268aa73acdb162a5479740bb2d36aff67.tar.bz2 | |
config/routes.rb: Remove "validated" from compliance check set API URL
After a discussion with Luc yesterday, the URL we settled on was:
/api/v1/compliance_check_sets/:id
This matches the format of the import API route a little better.
Refs #4757
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 8d7d4c92d..27db66c2c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -63,7 +63,9 @@ ChouetteIhm::Application.routes.draw do resources :stop_areas, only: [:index, :show] resources :time_tables, only: [:index, :show] resources :vehicle_journeys, only: :show - post 'compliance_check_sets/validated', to: 'compliance_check_sets#validated' + patch 'compliance_check_sets/:id', + to: 'compliance_check_sets#validated', + as: 'compliance_check_set' end end |
