添加服务器时间获取接口

dev_tpm_ui
jingquan huang 5 years ago
parent 26a473620b
commit 1837595cf2

@ -3,10 +3,6 @@ class Ecs::HomesController < Ecs::BaseController
@school_managers = current_school.users
end
def first_stamp
render :json => { status: 0, message: Time.now.to_i }
end
private
def current_school

@ -1,6 +1,10 @@
class MainController < ApplicationController
skip_before_action :check_sign
def first_stamp
render :json => { status: 0, message: Time.now.to_i }
end
def index
render file: 'public/react/build/index.html', :layout => false
end

@ -15,7 +15,7 @@ Rails.application.routes.draw do
scope '/api' do
get 'home/index'
get 'home/search'
get 'home/first_stamp'
get 'main/first_stamp'
get 'search', to: 'searchs#index'

Loading…
Cancel
Save