git-scm.com/config/routes.rb

30 строки
852 B
Ruby
Исходник Обычный вид История

2012-03-06 20:52:03 +04:00
Gitscm::Application.routes.draw do
get "site/index"
2012-03-06 20:52:03 +04:00
2012-03-08 22:54:25 +04:00
match "/doc" => "doc#index"
2012-04-04 21:20:51 +04:00
match "/ref" => "doc#ref"
match "/ref/:file" => "doc#man"
2012-04-13 03:43:35 +04:00
match "/ref/:file/:version" => "doc#man", :version => /[^\/]+/
2012-04-04 21:20:51 +04:00
match "/book" => "doc#book"
match "/videos" => "doc#videos"
2012-03-21 02:44:49 +04:00
match "/doc/ext" => "doc#ext"
2012-03-08 22:54:25 +04:00
match "/about" => "about#index"
match "/community" => "community#index"
match "/downloads" => "downloads#index"
2012-04-03 21:11:21 +04:00
match "/search" => "site#search"
# mapping for jasons mocks
match "/documentation" => "doc#index"
match "/documentation/reference" => "doc#ref"
match "/documentation/reference/:file.html" => "doc#man"
match "/documentation/book" => "doc#book"
match "/documentation/videos" => "doc#videos"
match "/documentation/external-links" => "doc#ext"
2012-03-08 22:54:25 +04:00
# TODO: old routes to new pages
root :to => 'site#index'
2012-03-06 20:52:03 +04:00
end