mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
ADD protected branch Features
This commit is contained in:
@@ -323,6 +323,34 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
# protected_branches
|
||||
scope do
|
||||
# get ':protected_branches/:action/:id/:user_id', constraints: { branch_name: Forgeplus::Regex.git_reference_regex }
|
||||
# post '/protected_branches' => 'protected_branches#create'
|
||||
# delete '/protected_branches/:branch_name' => 'protected_branches#destroy',
|
||||
# constraints: { branch_name: Forgeplus::Regex.git_reference_regex }
|
||||
# patch '/protected_branches/:branch_name' => 'protected_branches#update',
|
||||
# constraints: { branch_name: Forgeplus::Regex.git_reference_regex }
|
||||
get(
|
||||
'/protected_branches/',
|
||||
to: 'protected_branches#index'
|
||||
)
|
||||
delete(
|
||||
'/protected_branches/:branch_name',
|
||||
to: 'protected_branches#destroy',
|
||||
constraints: { branch_name: Forgeplus::Regex.git_reference_regex }
|
||||
)
|
||||
post(
|
||||
'/protected_branches',
|
||||
to: 'protected_branches#create'
|
||||
)
|
||||
patch(
|
||||
'/protected_branches/:branch_name',
|
||||
to: 'protected_branches#update',
|
||||
constraints: { branch_name: Forgeplus::Regex.git_reference_regex }
|
||||
)
|
||||
end
|
||||
|
||||
resources :issues do
|
||||
collection do
|
||||
get :commit_issues
|
||||
|
||||
Reference in New Issue
Block a user