Merge pull request '新增callback路由' (#168) from gua2048/forgeplus:mulanoss_server into mulanoss_server

This commit is contained in:
jasder 2021-09-29 17:33:18 +08:00
commit ab9bdfd109
1 changed files with 18 additions and 17 deletions

View File

@ -264,29 +264,29 @@ Rails.application.routes.draw do
scope module: :users do scope module: :users do
resources :applied_messages, only: [:index] resources :applied_messages, only: [:index]
resources :applied_transfer_projects, only: [:index] do resources :applied_transfer_projects, only: [:index] do
member do member do
post :accept post :accept
post :refuse post :refuse
end end
end end
resources :applied_projects, only: [:index] do resources :applied_projects, only: [:index] do
member do member do
post :accept post :accept
post :refuse post :refuse
end end
end end
resources :headmaps, only: [:index] resources :headmaps, only: [:index]
resources :is_pinned_projects, only: [:index, :update] do resources :is_pinned_projects, only: [:index, :update] do
collection do collection do
post :pin post :pin
end end
end end
resources :statistics, only: [:index] do resources :statistics, only: [:index] do
collection do collection do
get :activity get :activity
get :develop get :develop
get :role get :role
get :major get :major
end end
end end
@ -349,6 +349,7 @@ Rails.application.routes.draw do
get '/auth/qq/callback', to: 'oauth/qq#create' get '/auth/qq/callback', to: 'oauth/qq#create'
get '/auth/wechat/callback', to: 'oauth/wechat#create' get '/auth/wechat/callback', to: 'oauth/wechat#create'
get '/auth/educoder/callback', to: 'oauth/educoder#create' get '/auth/educoder/callback', to: 'oauth/educoder#create'
get '/auth/mulanoss/callback', to: 'oauth/mulanoss#create'
resource :bind_user, only: [:create] resource :bind_user, only: [:create]
resources :hot_keywords, only: [:index] resources :hot_keywords, only: [:index]
@ -567,15 +568,15 @@ Rails.application.routes.draw do
scope module: :projects do scope module: :projects do
resources :teams, only: [:index, :create, :destroy] resources :teams, only: [:index, :create, :destroy]
resources :project_units, only: [:index, :create] resources :project_units, only: [:index, :create]
resources :applied_transfer_projects, only: [:create] do resources :applied_transfer_projects, only: [:create] do
collection do collection do
get :organizations get :organizations
post :cancel post :cancel
end end
end end
resources :webhooks, except: [:show, :new] do resources :webhooks, except: [:show, :new] do
member do member do
get :tasks get :tasks
post :test post :test
end end
end end