fix routes
This commit is contained in:
parent
a721968938
commit
8d81672ac5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue