Spaces:
Sleeping
Sleeping
Update modules/sys_diagnostics.py
Browse files
modules/sys_diagnostics.py
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
# modules/sys_diagnostics.py - System Diagnostics Module
|
| 2 |
-
from fastapi import APIRouter
|
| 3 |
import psutil
|
| 4 |
import os
|
| 5 |
from datetime import datetime
|
| 6 |
|
| 7 |
def register_module(app, client, username):
|
| 8 |
"""Register diagnostics module with FastAPI app"""
|
|
|
|
|
|
|
|
|
|
| 9 |
router = APIRouter(prefix="/system")
|
| 10 |
|
| 11 |
@router.get("/diagnostics/health")
|
|
|
|
| 1 |
# modules/sys_diagnostics.py - System Diagnostics Module
|
|
|
|
| 2 |
import psutil
|
| 3 |
import os
|
| 4 |
from datetime import datetime
|
| 5 |
|
| 6 |
def register_module(app, client, username):
|
| 7 |
"""Register diagnostics module with FastAPI app"""
|
| 8 |
+
# LOCAL IMPORT - Yeh conflict fix karega
|
| 9 |
+
from fastapi import APIRouter
|
| 10 |
+
|
| 11 |
router = APIRouter(prefix="/system")
|
| 12 |
|
| 13 |
@router.get("/diagnostics/health")
|