新增:查看标签详情api

This commit is contained in:
2023-12-07 09:50:09 +08:00
parent cdf62b4626
commit b2250db79a
5 changed files with 68 additions and 5 deletions

View File

@@ -85,8 +85,9 @@ defaults format: :json do
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 :tags, param: :name, only: [:index, :show, :destroy]
delete 'tags/*name', to: "tags#destroy", via: :all
get 'tags/*name', to: "tags#show", via: :all
resources :commits, only: [:index]
resources :code_stats, only: [:index]