add health endpoints
Some checks are pending
Build and Publish / build-release (push) Waiting to run
Some checks are pending
Build and Publish / build-release (push) Waiting to run
This commit is contained in:
15
lib/policy_service_web/controllers/health_controller.ex
Normal file
15
lib/policy_service_web/controllers/health_controller.ex
Normal file
@@ -0,0 +1,15 @@
|
||||
defmodule PolicyServiceWeb.HealthController do
|
||||
use PolicyServiceWeb, :controller
|
||||
|
||||
def health(conn, _params) do
|
||||
conn
|
||||
|> put_status(:ok)
|
||||
|> json(%{status: "ok"})
|
||||
end
|
||||
|
||||
def ready(conn, _params) do
|
||||
conn
|
||||
|> put_status(:ok)
|
||||
|> json(%{status: "ready"})
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user