From 6d2fe59708f7bbd1b5af2821c8e0053886f9eb1b Mon Sep 17 00:00:00 2001 From: p31729568 Date: Sat, 12 Oct 2019 15:49:41 +0800 Subject: [PATCH] modify oauth route --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index f3e2ece62..32725e8e9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,9 +7,6 @@ Rails.application.routes.draw do get 'attachments/download/:id', to: 'attachments#show' get 'attachments/download/:id/:filename', to: 'attachments#show' - get '/auth/qq/callback', to: 'oauth/qq#create' - get '/auth/wechat/callback', to: 'oauth/wechat#create' - resources :edu_settings scope '/api' do get 'home/index' @@ -828,6 +825,9 @@ Rails.application.routes.draw do end resource :template, only: [:show] resource :setting, only: [:show] + + get '/auth/qq/callback', to: 'oauth/qq#create' + get '/auth/wechat/callback', to: 'oauth/wechat#create' resource :bind_user, only: [:create] end