Document a bit more, move ping/ to the user's code

This commit is contained in:
Roberto Alsina 2024-07-03 19:39:04 -03:00
parent ed621a75eb
commit 1f02e0af11
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,16 @@
require "kemal"
# This is a kemal app, you can add handlers, middleware, etc.
# A basic hello world get endpoint
get "/" do get "/" do
"Hello World Crystal!" "Hello World Crystal!"
end 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

@ -1,8 +1,4 @@
require "kemal" require "kemal"
require "./funko.cr" require "./funko.cr"
get "/ping/" do
"OK"
end
Kemal.run Kemal.run