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"}