refacto: rename app into backend, to prepare for frontend dev

This commit is contained in:
Alexis Fourmaux 2026-05-11 21:09:49 +02:00
parent 017092040d
commit e605bf8603
32 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,18 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from .readings import readings_router
app = FastAPI(title="SimuGazAPI", version="1.0.0")
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_methods=["GET"],
allow_headers=["*"],
)
app.include_router(readings_router)
@app.get("/health")
def health():
return {"status": "ok"}