feat(FN-002): complete Step 3 — FastAPI Backend App Skeleton

This commit is contained in:
Fusion
2026-05-14 01:31:58 +02:00
parent 79203d2f0f
commit 80f04a5c45
12 changed files with 148 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.config import settings
app = FastAPI(
title=settings.app_name,
debug=settings.debug,
)
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:5173"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
@app.get("/health")
def health() -> dict[str, str]:
return {"status": "ok", "service": settings.app_name}