feat: add API endpoint to get devices list
This commit is contained in:
parent
0cb5706ed7
commit
f4b7daabd3
9 changed files with 66 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue