mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 15:25:56 +08:00
新增: compare文件变更列表拆解
This commit is contained in:
@@ -167,6 +167,9 @@ defaults format: :json do
|
||||
post :save_yaml, on: :collection
|
||||
end
|
||||
resources :pulls, module: 'pulls' do
|
||||
member do
|
||||
get :files
|
||||
end
|
||||
resources :versions, only: [:index] do
|
||||
member do
|
||||
get :diff
|
||||
@@ -197,6 +200,7 @@ defaults format: :json do
|
||||
resources :tags, param: :name, only: [:index, :show, :destroy]
|
||||
delete 'tags/*name', to: "tags#destroy", via: :all
|
||||
get 'tags/*name', to: "tags#show", via: :all
|
||||
get '/compare/:base...:head/files' => 'compare#files', :constraints => { base: /.+/, head: /.+/ }
|
||||
|
||||
resources :commits, only: [:index] do
|
||||
collection do
|
||||
@@ -210,6 +214,7 @@ defaults format: :json do
|
||||
end
|
||||
end
|
||||
get '/commits/:sha/diff', to: 'commits#diff'
|
||||
get '/commits/:sha/files', to: 'commits#files'
|
||||
get '/git/blobs/:sha', to: 'git#blobs'
|
||||
get '/git/trees/:sha', to: 'git#trees'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user