car/main.py
2023-05-31 11:52:34 +08:00

14 lines
302 B
Python

import uvicorn
from fastapi import FastAPI
from handler import car, health
# 禁用 redoc
app = FastAPI(docs_url="/docs", redoc_url=None)
app.include_router(health.router)
app.include_router(car.router)
if __name__ == '__main__':
uvicorn.run("main:app", host="0.0.0.0", port=5000, reload=True)