update(k8s): add time on duty
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user