add health endpoints
Some checks are pending
Build and Publish / build-release (push) Waiting to run

This commit is contained in:
2026-04-13 16:22:47 -05:00
parent 3559699e40
commit e145d3bb3e
2 changed files with 19 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ defmodule PolicyServiceWeb.Router do
use PolicyServiceWeb, :router
alias PolicyServiceWeb.PolicyController
alias PolicyServiceWeb.HealthController
pipeline :api do
plug OpenApiSpex.Plug.PutApiSpec, module: PolicyServiceWeb.ApiSpec
@@ -10,6 +11,9 @@ defmodule PolicyServiceWeb.Router do
scope "/api" do
pipe_through [:api]
get "/health", HealthController, :health
get "/health/ready", HealthController, :ready
get "/openapi", OpenApiSpex.Plug.RenderSpec, []
scope "/v1" do