Functions/template/crystal/function/handler.cr

8 lines
125 B
Crystal

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