Changed crystal template, picked latest flask one
This commit is contained in:
7
template/crystal/function/handler.cr
Normal file
7
template/crystal/function/handler.cr
Normal file
@ -0,0 +1,7 @@
|
||||
require "json"
|
||||
|
||||
class Handler
|
||||
def run(req : String)
|
||||
return JSON::Any.new("Hello, Crystal. You said: #{req}")
|
||||
end
|
||||
end
|
7
template/crystal/function/shard.yml
Normal file
7
template/crystal/function/shard.yml
Normal file
@ -0,0 +1,7 @@
|
||||
name: crystal_faas_function
|
||||
version: 0.1.0
|
||||
|
||||
# dependencies:
|
||||
# pg:
|
||||
# github: will/crystal-pg
|
||||
# version: "~> 0.5"
|
Reference in New Issue
Block a user