2024-07-03 22:39:04 +00:00
|
|
|
require "kemal"
|
2024-07-03 23:54:19 +00:00
|
|
|
|
2024-07-03 22:39:04 +00:00
|
|
|
# This is a kemal app, you can add handlers, middleware, etc.
|
2024-07-03 23:54:19 +00:00
|
|
|
|
2024-07-03 22:39:04 +00:00
|
|
|
# A basic hello world get endpoint
|
2024-06-28 19:24:52 +00:00
|
|
|
get "/" do
|
2024-06-29 17:36:11 +00:00
|
|
|
"Hello World Crystal!"
|
2024-06-28 22:15:42 +00:00
|
|
|
end
|
2024-07-03 22:39:04 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
#
|
2024-07-03 22:39:04 +00:00
|
|
|
get "/ping/" do
|
|
|
|
"OK"
|
|
|
|
end
|