diff options
author | Alex Legler <alex@a3li.li> | 2011-08-19 12:48:01 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2011-08-19 12:48:01 +0200 |
commit | 3741ceebcb70101fee44f1909af172624fa1b2b1 (patch) | |
tree | c4030c50419a90a06d25f9bba598758734652edd /config | |
parent | RESTifying Part 1: Comments get their own controller, add glsas resource (diff) | |
download | glsamaker-3741ceebcb70101fee44f1909af172624fa1b2b1.tar.gz glsamaker-3741ceebcb70101fee44f1909af172624fa1b2b1.tar.bz2 glsamaker-3741ceebcb70101fee44f1909af172624fa1b2b1.zip |
GlsaController: RESTify releasing and editing.
Also removing old routes and adapt JS
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/config/routes.rb b/config/routes.rb index e626567..6fdb34e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,18 +4,6 @@ Glsamaker::Application.routes.draw do match 'bug/:id/history' => 'bug#history', :as => :bughistory match 'tools/bug/:id/:what' => 'tools#bugzie', :as => :bugzie - match 'glsa/:id/addcomment/save' => 'glsa#addcommentsave', :as => :addcommentsave - match 'glsa/:id/addcomment' => 'glsa#addcomment', :as => :addcomment - - match 'glsa/requests' => 'glsa#requests', :as => :requests - match 'glsa/drafts' => 'glsa#drafts', :as => :drafts - match 'glsa/archive' => 'glsa#archive', :as => :sent - - match 'glsa/diff/:id/rev/:from/to/:to' => 'glsa#diff', :as => :diff - - match 'glsa/new/:what' => 'glsa#new', :as => :newglsa - match 'glsa/show/:id.:format' => 'glsa#show', :as => :showglsa - match 'cve/list.:format' => 'cve#list', :as => :cve match 'admin' => 'admin#index' @@ -23,9 +11,17 @@ Glsamaker::Application.routes.draw do resources :glsas, :controller => 'glsa' do resources :comments - get 'requests', :on => :collection - get 'drafts' , :on => :collection - get 'archive' , :on => :collection + get 'requests', :on => :collection + get 'drafts' , :on => :collection + get 'archive' , :on => :collection + + get 'diff', :on => :member + get 'download', :on => :member + get 'import_references', :on => :member + get 'prepare_release', :on => :member + post 'prepare_release', :on => :member + post 'release', :on => :member + get 'update_cache', :on => :member end # The priority is based upon order of creation: |