From f5984c0483579d59fb5e4a82cb2bf1c88d509b92 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Mon, 30 Dec 2019 17:30:18 +0800 Subject: [PATCH] first stamp --- config/routes.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index afa61a0aa..633a93776 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,9 +4,6 @@ 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' @@ -1337,7 +1334,8 @@ 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' + get 'main#first_stamp' ## react用 get '*path', to: 'main#index', constraints: ReactConstraint.new