mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
softbot补充和调整接口
This commit is contained in:
@@ -1064,18 +1064,23 @@ Rails.application.routes.draw do
|
||||
resources :commit_logs, :only => [:create]
|
||||
|
||||
scope '/app' do
|
||||
get '/', to: 'installations#app'
|
||||
post ':id/auth_active', to: 'installations#auth_active'
|
||||
post ':id/update_private_key', to: 'installations#update_private_key'
|
||||
post ':id/update_secret', to: 'installations#update_secret'
|
||||
resources :installations do
|
||||
get :repositories, on: :collection
|
||||
resources :installations, only: [:index, :show] do
|
||||
member do
|
||||
post :access_tokens
|
||||
put :suspended
|
||||
put :suspended, to: 'installations#suspended'
|
||||
delete :suspended, to: 'installations#unsuspended'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
resources :installations, only: [] do
|
||||
get :repositories, on: :collection
|
||||
end
|
||||
|
||||
root 'main#index'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user