From 973e0874899744b9fb31fd8889a5cff409ab024a Mon Sep 17 00:00:00 2001 From: pollutri Date: Thu, 12 Feb 2026 15:49:54 +0100 Subject: [PATCH] ble-ai api route protected by oauth2 --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 0934fec..6b286d9 100644 --- a/app.py +++ b/app.py @@ -192,7 +192,7 @@ async def get_documentation(): return get_swagger_ui_html(openapi_url="/openapi.json", title="docs") -@app.get("/ble-ai/infer", tags=["BLE-AI"]) +@app.get("/ble-ai/infer", tags=["BLE-AI"], dependencies=[Depends(get_current_user)]) async def get_ble_ai_infer(mac: Optional[List[str]] = Query(default=None)): path = config_env.BLE_AI_INFER_CSV if not os.path.isfile(path):