mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
Merge branch 'pre_trustie_server' into trustie_server
This commit is contained in:
@@ -18,7 +18,7 @@ Doorkeeper.configure do
|
||||
User.authenticate!(params[:username], params[:password])
|
||||
end
|
||||
|
||||
access_token_generator '::Doorkeeper::JWT'
|
||||
# access_token_generator '::Doorkeeper::JWT'
|
||||
|
||||
admin_authenticator do
|
||||
user = current_user
|
||||
|
||||
@@ -1047,6 +1047,19 @@ Rails.application.routes.draw do
|
||||
|
||||
resources :commit_logs, :only => [:create]
|
||||
|
||||
scope '/app' do
|
||||
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
|
||||
member do
|
||||
post :access_tokens
|
||||
put :suspended
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
root 'main#index'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user