|
|
|
@ -141,7 +141,7 @@ RedmineApp::Application.routes.draw do
|
|
|
|
|
match 'users/:id/user_projects', :controller => 'users', :action => 'user_projects', :via => :get
|
|
|
|
|
#match 'user/:id/watch_calls', :controller => 'users', :action => 'watch_bids', :via => [:get , :post]
|
|
|
|
|
|
|
|
|
|
#end
|
|
|
|
|
#end
|
|
|
|
|
match 'my/account', :controller => 'my', :action => 'account', :via => [:get, :post]
|
|
|
|
|
match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post]
|
|
|
|
|
match 'my/page', :controller => 'my', :action => 'page', :via => :get
|
|
|
|
@ -175,6 +175,8 @@ RedmineApp::Application.routes.draw do
|
|
|
|
|
resources :bids, :only=>[:edit,:update,:show]
|
|
|
|
|
resources :projects do
|
|
|
|
|
member do
|
|
|
|
|
post 'finishcourse'
|
|
|
|
|
post 'restartcourse'
|
|
|
|
|
get 'settings(/:tab)', :action => 'settings', :as => 'settings'
|
|
|
|
|
#by young
|
|
|
|
|
get 'member', :controller => 'projects', :action => 'member', :as => 'member'
|
|
|
|
@ -196,24 +198,24 @@ RedmineApp::Application.routes.draw do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#by young
|
|
|
|
|
#by young
|
|
|
|
|
match '/member', :controller => 'projects', :action => 'member', :as => 'member', :via => :get
|
|
|
|
|
match '/file', :controller => 'projects', :action => 'file', :as => 'file', :via => :get
|
|
|
|
|
match '/statistics', :controller => 'projects', :action => 'statistics', :as => 'statistics', :via => :get
|
|
|
|
|
# match '/investor', :controller => 'projects', :action => 'investor', :as => 'investor', :via => :get
|
|
|
|
|
# match '/investor', :controller => 'projects', :action => 'investor', :as => 'investor', :via => :get
|
|
|
|
|
match '/homework', :controller => 'projects', :action => 'homework', :as => 'homework', :via => :get
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# match '/activity', :controller => 'activities', :action => 'index', :as => 'activity', :via => :get
|
|
|
|
|
# match '/repository', :controller => 'repositories', :action => 'show', :repository_id => nil, :path => nil, :rev => nil, :as => 'repository', :via => :get
|
|
|
|
|
# match '/', :controller => 'projects', :action => 'show', :as => 'project_show', :via => :get
|
|
|
|
|
# get 'projects/:project_id/show', :to => 'projects#show', :as => 'project_show'
|
|
|
|
|
# get 'projects/:project_id/repository', :to => 'repositories#show', :as => 'project_repository'
|
|
|
|
|
# match '/activity', :controller => 'activities', :action => 'index', :as => 'activity', :via => :get
|
|
|
|
|
# match '/repository', :controller => 'repositories', :action => 'show', :repository_id => nil, :path => nil, :rev => nil, :as => 'repository', :via => :get
|
|
|
|
|
# match '/', :controller => 'projects', :action => 'show', :as => 'project_show', :via => :get
|
|
|
|
|
# get 'projects/:project_id/show', :to => 'projects#show', :as => 'project_show'
|
|
|
|
|
# get 'projects/:project_id/repository', :to => 'repositories#show', :as => 'project_repository'
|
|
|
|
|
|
|
|
|
|
# match '/show', :controller => 'projects', :action => 'show', :as => 'project_show', :via => :get
|
|
|
|
|
# match '/show', :controller => 'projects', :action => 'show', :as => 'project_show', :via => :get
|
|
|
|
|
match '/watcherlist', :controller=>'projects', :action=> 'watcherlist', :as => 'watcherlist', :via => :get #add by huang
|
|
|
|
|
# matche '/news', :controller => 'news', :action => 'index', :as => 'news', :via => :get
|
|
|
|
|
#end
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
resources :memberships, :shallow => true, :controller => 'members', :only => [:index, :show, :new, :create, :update, :destroy] do
|
|
|
|
|
collection do
|
|
|
|
@ -336,8 +338,7 @@ RedmineApp::Application.routes.draw do
|
|
|
|
|
get 'projects/:id/repository/:repository_id/statistics', :to => 'repositories#stats'
|
|
|
|
|
get 'projects/:id/repository/:repository_id/graph', :to => 'repositories#graph'
|
|
|
|
|
|
|
|
|
|
get 'projects/:id/repository/:repository_id/changes(/*path(.:ext))',
|
|
|
|
|
:to => 'repositories#changes'
|
|
|
|
|
get 'projects/:id/repository/:repository_id/changes(/*path(.:ext))', :to => 'repositories#changes'
|
|
|
|
|
|
|
|
|
|
get 'projects/:id/repository/:repository_id/revisions/:rev', :to => 'repositories#revision'
|
|
|
|
|
get 'projects/:id/repository/:repository_id/revision', :to => 'repositories#revision'
|
|
|
|
@ -355,8 +356,7 @@ RedmineApp::Application.routes.draw do
|
|
|
|
|
get 'projects/:id/repository/statistics', :to => 'repositories#stats'
|
|
|
|
|
get 'projects/:id/repository/graph', :to => 'repositories#graph'
|
|
|
|
|
|
|
|
|
|
get 'projects/:id/repository/changes(/*path(.:ext))',
|
|
|
|
|
:to => 'repositories#changes'
|
|
|
|
|
get 'projects/:id/repository/changes(/*path(.:ext))', :to => 'repositories#changes'
|
|
|
|
|
|
|
|
|
|
get 'projects/:id/repository/revisions', :to => 'repositories#revisions'
|
|
|
|
|
get 'projects/:id/repository/revisions/:rev', :to => 'repositories#revision'
|
|
|
|
|