Add healthcheck route
This commit is contained in:
parent
a12127c307
commit
cd83c94eb8
|
@ -0,0 +1,7 @@
|
||||||
|
defmodule TuskerPushWeb.HealthcheckController do
|
||||||
|
use TuskerPushWeb, :controller
|
||||||
|
|
||||||
|
def healthcheck(conn, _params) do
|
||||||
|
send_resp(conn, 200, "ok")
|
||||||
|
end
|
||||||
|
end
|
|
@ -5,6 +5,10 @@ defmodule TuskerPushWeb.Router do
|
||||||
plug :accepts, ["json"]
|
plug :accepts, ["json"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scope "/", TuskerPushWeb do
|
||||||
|
get "/healthcheck", HealthcheckController, :healthcheck
|
||||||
|
end
|
||||||
|
|
||||||
scope "/push", TuskerPushWeb do
|
scope "/push", TuskerPushWeb do
|
||||||
pipe_through :api
|
pipe_through :api
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue