diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-09 18:21:36 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-09 18:21:55 -0600 |
commit | 9560ced6837d4c2e551df22f9f2c06d17b409855 (patch) | |
tree | 651d2cca18a9fd8f5063d418be291b1fa0412250 /lib/chessh/web/web.ex | |
parent | 750531368b668b6a2eb465d58ef1ffadd9b0ca3d (diff) | |
download | chessh-9560ced6837d4c2e551df22f9f2c06d17b409855.tar.gz chessh-9560ced6837d4c2e551df22f9f2c06d17b409855.zip |
add health check
Diffstat (limited to 'lib/chessh/web/web.ex')
-rw-r--r-- | lib/chessh/web/web.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chessh/web/web.ex b/lib/chessh/web/web.ex index d5e2be5..af70ebb 100644 --- a/lib/chessh/web/web.ex +++ b/lib/chessh/web/web.ex @@ -392,6 +392,12 @@ defmodule Chessh.Web.Endpoint do ) end + get "/health" do + conn + |> put_resp_content_type("text/plain") + |> send_resp(200, "healthy") + end + match _ do send_resp(conn, 404, "Route undefined") end |