2012-03-06 20:52:03 +04:00
|
|
|
Gitscm::Application.routes.draw do
|
2012-03-08 21:09:45 +04:00
|
|
|
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"
|
|
|
|
match "/ref/:file/:version" => "doc#man"
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
2012-03-08 21:09:45 +04:00
|
|
|
root :to => 'site#index'
|
2012-03-06 20:52:03 +04:00
|
|
|
end
|