init(app): initial version
This commit is contained in:
17
app/main.py
Normal file
17
app/main.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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"}
|
||||
Reference in New Issue
Block a user