diff --git a/examples/hello_crystal/funko.cr b/examples/hello_crystal/funko.cr index 88ae85f..a397946 100644 --- a/examples/hello_crystal/funko.cr +++ b/examples/hello_crystal/funko.cr @@ -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 diff --git a/runtimes/crystal/main.cr b/runtimes/crystal/main.cr index 20c87cb..c8670e8 100644 --- a/runtimes/crystal/main.cr +++ b/runtimes/crystal/main.cr @@ -1,8 +1,4 @@ require "kemal" require "./funko.cr" -get "/ping/" do - "OK" -end - Kemal.run