20 lines
320 B
Python
20 lines
320 B
Python
import uvicorn
|
|
from fastapi import FastAPI
|
|
|
|
import bifrost.routers as routers
|
|
from .config import Settings as settings
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/")
|
|
async def root():
|
|
return {"message": "Hello World"}
|
|
|
|
|
|
app.include_router(routers.router)
|
|
|
|
|
|
def init():
|
|
uvicorn.run(app, host=settings.host, port=settings.port)
|