mirror of
https://ak-git.vectorsigma.ru/terghalin/metalcheck.git
synced 2026-02-21 18:40:31 +09:00
18 lines
353 B
Python
18 lines
353 B
Python
from fastapi import FastAPI
|
|
from database import init_db
|
|
from routes import metal, vm, k8s, export
|
|
|
|
app = FastAPI()
|
|
|
|
init_db()
|
|
|
|
# Include routes
|
|
app.include_router(metal.router)
|
|
app.include_router(vm.router)
|
|
app.include_router(k8s.router)
|
|
app.include_router(export.router)
|
|
|
|
@app.get("/")
|
|
def root():
|
|
return {"message": "Welcome to Metal Check API"}
|