|
|
|
@ -4,6 +4,9 @@ Rails.application.routes.draw do
|
|
|
|
|
require 'admin_constraint'
|
|
|
|
|
mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new
|
|
|
|
|
|
|
|
|
|
root 'main#index'
|
|
|
|
|
get 'main#first_stamp'
|
|
|
|
|
|
|
|
|
|
get 'attachments/download/:id', to: 'attachments#show'
|
|
|
|
|
get 'attachments/download/:id/:filename', to: 'attachments#show'
|
|
|
|
|
get 'auth/qq/callback', to: 'oauth/qq#create'
|
|
|
|
@ -1334,7 +1337,7 @@ Rails.application.routes.draw do
|
|
|
|
|
get 'oauth/get_code', to: 'oauth#get_code'
|
|
|
|
|
get 'oauth/get_token_callback', to: 'oauth#get_token_callback'
|
|
|
|
|
|
|
|
|
|
root 'main#index'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## react用
|
|
|
|
|
get '*path', to: 'main#index', constraints: ReactConstraint.new
|
|
|
|
|