This commit is contained in:
counterweight 2025-12-18 21:37:28 +01:00
commit a764c92a0b
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
11 changed files with 1081 additions and 0 deletions

17
backend/main.py Normal file
View file

@ -0,0 +1,17 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"],
allow_methods=["*"],
allow_headers=["*"],
)
@app.get("/api/hello")
def hello():
return {"message": "Hello from FastAPI"}

9
backend/pyproject.toml Normal file
View file

@ -0,0 +1,9 @@
[project]
name = "backend"
version = "0.1.0"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115.6",
"uvicorn>=0.34.0",
]