新增:更改默认分支接口

This commit is contained in:
2023-02-03 13:45:32 +08:00
parent 3f78899c58
commit f2cdba29ea
4 changed files with 72 additions and 4 deletions

View File

@@ -48,7 +48,8 @@ defaults format: :json do
end
resources :branches, only:[:index, :create] do
collection do
get :all
get :all
patch :update_default_branch
end
end
resources :commits, only: [:index]