Document a bit more, move ping/ to the user's code
This commit is contained in:
parent
ed621a75eb
commit
1f02e0af11
@ -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
|
||||
"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
|
||||
|
@ -1,8 +1,4 @@
|
||||
require "kemal"
|
||||
require "./funko.cr"
|
||||
|
||||
get "/ping/" do
|
||||
"OK"
|
||||
end
|
||||
|
||||
Kemal.run
|
||||
|
Loading…
Reference in New Issue
Block a user