FSA-PROJECT-CV / main.py
HuyDN
Phase1/HuyDN: Add FastAPI Structure
adf36ef
raw
history blame
321 Bytes
import uvicorn
from fastapi import FastAPI
from app.modules import modules_router
app = FastAPI()
app.include_router(modules_router)
@app.get("/")
async def index():
return {"message": "Simple Question API Services"}
if __name__ == "__main__":
uvicorn.run("main:app", reload=True, host="127.0.0.1", port=8000)