mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX project routes bug
This commit is contained in:
@@ -235,36 +235,16 @@ Rails.application.routes.draw do
|
||||
to: 'project_trends#index',
|
||||
as: :project_activity
|
||||
)
|
||||
end
|
||||
|
||||
get(
|
||||
'/branches',
|
||||
to: 'projects#branches',
|
||||
as: :project_branches
|
||||
)
|
||||
|
||||
get(
|
||||
'/simple',
|
||||
to: 'projects#simple',
|
||||
as: :project_simple
|
||||
)
|
||||
|
||||
get(
|
||||
'/watchers',
|
||||
to: 'projects#watch_users',
|
||||
as: :project_watchers
|
||||
)
|
||||
|
||||
get(
|
||||
'/stargazers',
|
||||
to: 'projects#praise_users',
|
||||
as: :project_stargazers
|
||||
)
|
||||
|
||||
get(
|
||||
'/members',
|
||||
to: 'projects#fork_users',
|
||||
as: :project_members
|
||||
)
|
||||
resource :projects, path: '/' do
|
||||
member do
|
||||
get :branches
|
||||
get :simple
|
||||
get :watchers, to: 'projects#watch_users'
|
||||
get :stargazers, to: 'projects#praise_users'
|
||||
get :members, to: 'projects#fork_users'
|
||||
end
|
||||
end
|
||||
|
||||
resource :repositories, path: '/', only: [:show, :create, :edit] do
|
||||
|
||||
Reference in New Issue
Block a user