Project

General

Profile

« Previous | Next » 

Revision 880

Pretty URL for the repository browser (Cyril Mougel)

View differences:

routes.rb
16 16
  map.connect 'issues/:issue_id/relations/:action/:id', :controller => 'issue_relations'
17 17
  map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards'
18 18
  map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages'
19

  
20
  map.with_options :controller => 'repositories' do |omap|
21
    omap.repositories_show 'repositories/browse/:id/*path', :action => 'browse'
22
    omap.repositories_changes 'repositories/changes/:id/*path', :action => 'changes'
23
    omap.repositories_diff 'repositories/diff/:id/*path', :action => 'diff'
24
    omap.repositories_entry 'repositories/entry/:id/*path', :action => 'entry'
25
  end
19 26
  
20 27
  # Allow downloading Web Service WSDL as a file with an extension
21 28
  # instead of a file named 'wsdl'

Also available in: Unified diff