From 883b53dbb273fc19e0139c83a4d41705a0265609 Mon Sep 17 00:00:00 2001 From: Kristjan Komlosi Date: Sat, 17 May 2025 23:20:49 +0200 Subject: [PATCH] remove static data from main --- main.py | 70 --------------------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/main.py b/main.py index be9fee6..34dcd1e 100644 --- a/main.py +++ b/main.py @@ -228,73 +228,3 @@ app.add_middleware( ) app.mount("/", StaticFiles(directory="./webroot", html=True), name="static") - - - -# API DOCS: - """ - API Endpoints: - - 1. GET /info - - Returns current system info and thresholds. - - Response: { - uptime: datetime, - cpu: float, - ram: float, - disk: float, - cpu_threshold: int, - ram_threshold: int, - disk_threshold: int, - cpu_normal: bool, - ram_normal: bool, - disk_normal: bool - } - - 2. GET /limits - - Returns current threshold limits. - - Response: { - cpu_threshold: int, - ram_threshold: int, - disk_threshold: int - } - - 3. POST /limits - - Sets new threshold limits. - - Body: { - cpu_threshold: int, - ram_threshold: int, - disk_threshold: int - } - - Response: { - cpu: int, - ram: int, - disk: int - } - - 4. GET /overages - - Returns a list of overage events. - - Response: [ - { - id: int, - cpu_overage: int, - ram_overage: int, - disk_overage: int, - timestamp: datetime - }, - ... - ] - - 5. GET /overages/{overage_id} - - Returns a specific overage event by ID. - - Response: { - id: int, - cpu_overage: int, - ram_overage: int, - disk_overage: int, - timestamp: datetime - } - - 6. DELETE /overages/{overage_id} - - Deletes a specific overage event by ID. - - Response: { detail: "Overage event deleted" } - """ \ No newline at end of file