Add FastAPI backend and React frontend setup with initial routes and components

This commit is contained in:
2024-12-24 19:55:36 +01:00
parent 872fb54ecc
commit 42a447f12e
10 changed files with 114 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
from fastapi import APIRouter
router = APIRouter(
prefix="/api",
tags=["example"],
responses={404: {"description": "Not found"}},
)
@router.get("/items")
async def read_items():
return [{"name": "Item 1"}, {"name": "Item 2"}]