@@ -244,7 +244,8 ActionController::Routing::Routes.draw do |map| | |||||
244 | :action => 'diff' |
|
244 | :action => 'diff' | |
245 | repository_views.connect 'projects/:id/repository/revisions/:rev/raw/*path', |
|
245 | repository_views.connect 'projects/:id/repository/revisions/:rev/raw/*path', | |
246 | :action => 'entry', |
|
246 | :action => 'entry', | |
247 |
:format => 'raw', |
|
247 | :format => 'raw', | |
|
248 | :requirements => { :rev => /[a-z0-9\.\-_]+/ } | |||
248 | repository_views.connect 'projects/:id/repository/revisions/:rev/:action/*path', |
|
249 | repository_views.connect 'projects/:id/repository/revisions/:rev/:action/*path', | |
249 | :requirements => { :rev => /[a-z0-9\.\-_]+/ } |
|
250 | :requirements => { :rev => /[a-z0-9\.\-_]+/ } | |
250 |
|
251 | |||
@@ -266,14 +267,18 ActionController::Routing::Routes.draw do |map| | |||||
266 | :action => 'graph' |
|
267 | :action => 'graph' | |
267 | end |
|
268 | end | |
268 |
|
269 | |||
269 |
repositories.connect 'projects/:id/repository/revision', |
|
270 | repositories.connect 'projects/:id/repository/revision', | |
|
271 | :action => 'revision', | |||
270 | :conditions => {:method => [:get, :post]} |
|
272 | :conditions => {:method => [:get, :post]} | |
271 |
|
273 | |||
272 |
repositories.connect 'projects/:id/repository/committers', |
|
274 | repositories.connect 'projects/:id/repository/committers', | |
|
275 | :action => 'committers', | |||
273 | :conditions => {:method => [:get, :post]} |
|
276 | :conditions => {:method => [:get, :post]} | |
274 |
repositories.connect 'projects/:id/repository/edit', |
|
277 | repositories.connect 'projects/:id/repository/edit', | |
|
278 | :action => 'edit', | |||
275 | :conditions => {:method => :post} |
|
279 | :conditions => {:method => :post} | |
276 |
repositories.connect 'projects/:id/repository/destroy', |
|
280 | repositories.connect 'projects/:id/repository/destroy', | |
|
281 | :action => 'destroy', | |||
277 | :conditions => {:method => :post} |
|
282 | :conditions => {:method => :post} | |
278 | end |
|
283 | end | |
279 |
|
284 |
General Comments 0
You need to be logged in to leave comments.
Login now