Initial commit
This commit is contained in:
18
app/api/v2/management/tools.rb
Normal file
18
app/api/v2/management/tools.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
module V2
|
||||
module Management
|
||||
class Tools < Grape::API
|
||||
desc 'Returns server time in seconds since Unix epoch.' do
|
||||
@settings[:scope] = :tools
|
||||
end
|
||||
post '/timestamp' do
|
||||
body timestamp: Time.now.iso8601
|
||||
status 200
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user