faaso/examples/hello_crystal/funko.cr

17 lines
375 B
Crystal
Raw Normal View History

require "kemal"
# This is a kemal app, you can add handlers, middleware, etc.
# A basic hello world get endpoint
2024-06-28 19:24:52 +00:00
get "/" do
"Hello World Crystal!"
2024-06-28 22:15:42 +00:00
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