1 Gitlab::Application.routes.draw do
3 # Optionally, enable Resque here
4 # require 'resque/server'
5 # mount Resque::Server.new, at: '/info/resque'
7 get 'tags'=> 'tags#index'
8 get 'tags/:tag' => 'projects#index'
12 resources :projects, :constraints => { :id => /[^\/]+/ }
13 resources :team_members
14 get 'emails', :to => 'mailer#preview'
15 get 'mailer/preview_note'
16 get 'mailer/preview_user_new'
17 get 'mailer/preview_issue_new'
18 root :to => "users#index"
22 get "profile/password", :to => "profile#password"
23 put "profile/password", :to => "profile#password_update"
24 put "profile/reset_private_token", :to => "profile#reset_private_token"
25 get "profile", :to => "profile#show"
26 get "profile/design", :to => "profile#design"
27 put "profile/update", :to => "profile#update"
29 get "dashboard", :to => "dashboard#index"
30 get "dashboard/issues", :to => "dashboard#issues"
31 get "dashboard/merge_requests", :to => "dashboard#merge_requests"
33 #get "profile/:id", :to => "profile#show"
35 resources :projects, :constraints => { :id => /[^\/]+/ }, :only => [:new, :create, :index]
40 resources :projects, :constraints => { :id => /[^\/]+/ }, :except => [:new, :create, :index], :path => "/" do
49 resources :refs, :only => [], :path => "/" do
55 get "tree", :constraints => { :id => /[a-zA-Z.\/0-9_\-]+/ }
58 :id => /[a-zA-Z.0-9\/_\-]+/,
64 get "tree/:path" => "refs#tree",
67 :id => /[a-zA-Z.0-9\/_\-]+/,
73 resources :merge_requests do
81 resources :team_members
88 resources :notes, :only => [:create, :destroy]
90 root :to => "dashboard#index"