FIX project routes bug
This commit is contained in:
parent
0e951df5d0
commit
a0789cbd22
|
@ -235,36 +235,16 @@ Rails.application.routes.draw do
|
||||||
to: 'project_trends#index',
|
to: 'project_trends#index',
|
||||||
as: :project_activity
|
as: :project_activity
|
||||||
)
|
)
|
||||||
|
end
|
||||||
|
|
||||||
get(
|
resource :projects, path: '/' do
|
||||||
'/branches',
|
member do
|
||||||
to: 'projects#branches',
|
get :branches
|
||||||
as: :project_branches
|
get :simple
|
||||||
)
|
get :watchers, to: 'projects#watch_users'
|
||||||
|
get :stargazers, to: 'projects#praise_users'
|
||||||
get(
|
get :members, to: 'projects#fork_users'
|
||||||
'/simple',
|
end
|
||||||
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
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
resource :repositories, path: '/', only: [:show, :create, :edit] do
|
resource :repositories, path: '/', only: [:show, :create, :edit] do
|
||||||
|
|
Loading…
Reference in New Issue