aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorjpl2016-09-02 11:34:35 +0200
committerjpl2016-09-02 11:34:48 +0200
commit3f7531ddfa0d0c0e359d87baffa7097c9ee44d1a (patch)
tree630500074ce26a8b7ffdfe742f291400f3934b3b /config/routes.rb
parentd54645efac3c60cca069888e72d47d52646c6f20 (diff)
downloadchouette-core-3f7531ddfa0d0c0e359d87baffa7097c9ee44d1a.tar.bz2
Refs #1523: adding (un)archive actions to referentials
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index f83f4771c..af466f640 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -72,6 +72,12 @@ ChouetteIhm::Application.routes.draw do
end
end
+ # Archive/unarchive
+ member do
+ put :archive
+ put :unarchive
+ end
+
resources :networks
match 'lines' => 'lines#destroy_all', :via => :delete
@@ -200,4 +206,4 @@ ChouetteIhm::Application.routes.draw do
get '/422', :to => 'errors#server_error'
get '/500', :to => 'errors#server_error'
-end
+end \ No newline at end of file