update(k8s): add time on duty

This commit is contained in:
Aleksandr Tcitlionok
2024-12-06 03:48:35 +00:00
parent 1c130a9271
commit 22ea154c19
2 changed files with 30 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
from fastapi import FastAPI
from database import init_db
from fastapi.middleware.cors import CORSMiddleware
from routes import metal, vm, k8s, export, think
app = FastAPI()
@@ -13,6 +14,14 @@ app.include_router(k8s.router)
app.include_router(export.router)
app.include_router(think.router)
#app.add_middleware(
# CORSMiddleware,
# allow_origins=["http://localhost:3000"],
# allow_credentials=True,
# allow_methods=["*"],
# allow_headers=["*"],
#)
@app.get("/")
def root():
return {"message": "Welcome to Metal Check API"}