Merge branch 'develop' into standalone_develop

This commit is contained in:
2023-02-10 13:44:43 +08:00
15 changed files with 321 additions and 10 deletions

View File

@@ -48,11 +48,17 @@ defaults format: :json do
get :hooktasks
end
end
resources :branches, only:[:index, :create] do
resources :branches, param: :name, only:[:index, :create, :destroy] do
collection do
get :all
get :all
patch :update_default_branch
end
end
match 'branches/*name', to: "branches#destroy", via: :all
resources :tags, param: :name, only: [:index, :destroy]
match 'tags/*name', to: "tags#destroy", via: :all
resources :commits, only: [:index]
resources :code_stats, only: [:index]
get '/commits/:sha/diff', to: 'commits#diff'