Add healthcheck route

This commit is contained in:
Shadowfacts 2024-04-12 16:53:38 -04:00
parent a12127c307
commit cd83c94eb8
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
defmodule TuskerPushWeb.HealthcheckController do
use TuskerPushWeb, :controller
def healthcheck(conn, _params) do
send_resp(conn, 200, "ok")
end
end

View File

@ -5,6 +5,10 @@ defmodule TuskerPushWeb.Router do
plug :accepts, ["json"]
end
scope "/", TuskerPushWeb do
get "/healthcheck", HealthcheckController, :healthcheck
end
scope "/push", TuskerPushWeb do
pipe_through :api