diff --git a/main.py b/main.py index 662d2dd..030d19c 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ from contextlib import asynccontextmanager from typing import Optional, List from fastapi import FastAPI, HTTPException +from fastapi.staticfiles import StaticFiles from sqlalchemy import select from app.core.discovery import DiscoveryService @@ -173,6 +174,9 @@ async def control_group( return {"status": "ok", "applied": params, "sent_to": ips} +# Монтируем папку static для фронтенда +app.mount("/", StaticFiles(directory="static", html=True), name="static") + if __name__ == "__main__": import uvicorn diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..8294074 --- /dev/null +++ b/static/index.html @@ -0,0 +1,149 @@ + + +
+ + +Группы не найдены в базе
+