moved frontend files around
Some checks failed
CI/CD Pipeline / build (push) Failing after 5s

This commit is contained in:
2026-03-18 08:56:15 -06:00
parent 707ac60f7e
commit 9a9522ecb6
7 changed files with 47 additions and 14 deletions

View File

@@ -0,0 +1,17 @@
defmodule ElixirAiWeb.Plugs.HealthCheck do
@moduledoc """
A lightweight health check plug that responds before hitting the router.
This avoids unnecessary processing and logging for health check requests.
"""
import Plug.Conn
def init(opts), do: opts
def call(%Plug.Conn{request_path: "/health"} = conn, _opts) do
conn
|> send_resp(200, ~s({"status":"ok"}))
|> halt()
end
def call(conn, _opts), do: conn
end