Basic runtime template implementation

This commit is contained in:
2024-07-05 10:23:46 -03:00
parent 6eb9c49c22
commit 42f43db2b1
6 changed files with 82 additions and 1 deletions

View File

@ -0,0 +1,4 @@
# README
This is the readme for people wanting to change this runtime,
not for people trying to use it

View File

@ -0,0 +1,11 @@
# Readme for {{name | title}}
This is a funko using the Crystal runtime for [FaaSO](https://git.ralsina.me/ralsina/faaso)
## What is {{name | title}}
Write here what it is
## How to use {{name | title}}
And so on.

View File

@ -0,0 +1,16 @@
require "kemal"
# This is a kemal app, you can add handlers, middleware, etc.
# A basic hello world get endpoint
get "/" do
"Hello World Crystal!"
end
# The `/ping/` endpoint is configured in the container as a healthcheck
# You can make it better by checking that your database is responding
# or whatever checks you think are important
#
get "/ping/" do
"OK"
end

View File

@ -0,0 +1,2 @@
name: hello
runtime: crystal