faaso/examples/hello_crystal/funko.cr

17 lines
372 B
Crystal
Raw Normal View History

require "kemal"
2024-07-03 23:54:19 +00:00
# This is a kemal app, you can add handlers, middleware, etc.
2024-07-03 23:54:19 +00:00
# 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
2024-07-03 23:54:19 +00:00
#
get "/ping/" do
"OK"
end