feat: add API endpoint to get devices list

This commit is contained in:
Alexis Fourmaux 2026-05-12 21:59:24 +02:00
parent 0cb5706ed7
commit f4b7daabd3
9 changed files with 66 additions and 1 deletions

View file

@ -1,6 +1,7 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from .readings import readings_router
from .devices import devices_router
app = FastAPI(title="SimuGazAPI", version="1.0.0")
@ -12,6 +13,7 @@ app.add_middleware(
)
app.include_router(readings_router)
app.include_router(devices_router)
@app.get("/health")
def health():