Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -18,12 +18,8 @@ from .docker_monitor import DockerMonitor
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
app = FastAPI(title="RedUnits Control Panel", lifespan=lifespan)
|
||||
|
||||
# Setup paths
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")
|
||||
templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
|
||||
|
||||
# Initialize Docker monitor
|
||||
docker_monitor = DockerMonitor()
|
||||
@@ -165,6 +161,10 @@ async def lifespan(app: FastAPI):
|
||||
yield
|
||||
|
||||
|
||||
app = FastAPI(title="RedUnits Control Panel", lifespan=lifespan)
|
||||
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")
|
||||
templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# HTTP routes
|
||||
# ──────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user