新增:最新提交列表接口

This commit is contained in:
2024-01-30 14:49:54 +08:00
parent feec49d4bd
commit 6a4f63d8ea
5 changed files with 61 additions and 3 deletions

View File

@@ -90,7 +90,11 @@ defaults format: :json do
delete 'tags/*name', to: "tags#destroy", via: :all
get 'tags/*name', to: "tags#show", via: :all
resources :commits, only: [:index]
resources :commits, only: [:index] do
collection do
get :recent
end
end
resources :code_stats, only: [:index]
resources :contributors, only: [:index] do
collection do