add tailwindcss

This commit is contained in:
Waylon S. Walker 2024-10-14 19:56:41 -05:00
parent a426df12c0
commit 16e207000f
20 changed files with 2421 additions and 100 deletions

View file

@ -1,4 +1,5 @@
from fastapi import APIRouter, HTTPException, Request
from fastapi_dynamic_response import globals
router = APIRouter()
@ -36,7 +37,7 @@ async def healthz(request: Request):
Returns 503 Service Unavailable if not healthy.
"""
request.state.template_name = "status.html"
if is_ready:
if globals.is_ready:
return {"status": "healthy"}
else:
raise HTTPException(status_code=503, detail="Unhealthy")