Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ dependencies = [
"pydantic-settings~=2.14.0",
"jinja2~=3.1.0",
"python-dotenv~=1.2.0",
"starlette>=1.3.1",
"idna>=3.15",
]

[dependency-groups]
Expand All @@ -29,7 +31,7 @@ dev = [
"python-frontmatter>=1.3.0",
]
test = [
"pytest~=8.3.0",
"pytest>=8.4.0,<9",
"pytest-asyncio~=1.2.0",
"pytest-cov~=7.1.0",
"httpx~=0.28.0",
Expand Down
7 changes: 5 additions & 2 deletions src/app/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import logging
from contextlib import asynccontextmanager
from pathlib import Path
from typing import AsyncIterator


from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse, Response
from fastapi.staticfiles import StaticFiles
Expand Down Expand Up @@ -33,8 +35,9 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:
redoc_url=None,
)

app.mount("/static", StaticFiles(directory="src/app/ui"), name="static")
templates = Jinja2Templates(directory="src/app/ui")
_UI_DIR = Path(__file__).resolve().parent / "ui"
app.mount("/static", StaticFiles(directory=_UI_DIR), name="static")
templates = Jinja2Templates(directory=_UI_DIR)


# --Health--
Expand Down
44 changes: 29 additions & 15 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.