Files
Dalan/app/api/v2/management/tools.rb
2026-08-13 19:56:46 +03:30

16 lines
317 B
Ruby

# frozen_string_literal: true
module API::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.to_i
status 200
end
end
end
end