templates/crystal/example/src/handler.cr in faastruby-0.5.29 vs templates/crystal/example/src/handler.cr in faastruby-0.5.30
- old
+ new
@@ -1,10 +1,10 @@
# require "cool-shard"
require "json"
# To deploy this function, cd into its folder and run:
# faastruby deploy-to WORKSPACE_NAME
-def handler(event : FaaStRuby::Event) : FaaStRuby::Response
+def handler(event)
# event.body : String | Nil
# event.headers : Hash(String, String)
# event.context : String | Nil
# query_params : Hash(String, String)
# FUNCTION RESPONSE