Add health controller

Fly.io uses '/health' to determine the application health status.
This commit is contained in:
Claudio Ortolina
2024-09-28 15:27:59 +01:00
parent 60939a304b
commit 1ec6712513
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ defmodule MusicLibraryWeb.Router do
scope "/", MusicLibraryWeb do
pipe_through :browser
get "/health", HealthController, :index
get "/images/:record_id", ImageController, :show
live "/", RecordLive.Index, :index