softbot补充和调整接口

This commit is contained in:
2023-03-29 14:14:25 +08:00
parent 9f123995ee
commit f0dca4c0c1
6 changed files with 67 additions and 3 deletions

View File

@@ -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'