Functions/template/crystal/function/handler.cr

8 lines
125 B
Crystal
Raw Normal View History

require "json"
class Handler
def run(req : String)
return JSON::Any.new("Hello, Crystal. You said: #{req}")
end
end