fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from fastapi import FastAPI
|
||||
from fastapi.responses import FileResponse
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
@@ -36,6 +37,10 @@ WEB_SERVICES = [
|
||||
{"name": "Board", "url": "https://board.nabd-co.com/"},
|
||||
]
|
||||
|
||||
@app.get("/")
|
||||
async def read_index():
|
||||
return FileResponse("monitor.html")
|
||||
|
||||
@app.get("/api/status")
|
||||
async def get_status():
|
||||
# Run SSH checks in parallel
|
||||
|
||||
Reference in New Issue
Block a user