2026-09-20 17:06:24 +08:00
|
|
|
from fastapi import FastAPI
|
|
|
|
|
from api.example import example_router
|
2026-09-20 19:45:36 +08:00
|
|
|
from middleware import log_middleware
|
2026-09-20 17:06:24 +08:00
|
|
|
import uvicorn
|
|
|
|
|
app = FastAPI()
|
2026-09-20 19:45:36 +08:00
|
|
|
app.middleware("http")(log_middleware)
|
|
|
|
|
|
|
|
|
|
#-------------朱婷婷--------------
|
|
|
|
|
|
|
|
|
|
#-------------李玉杰--------------
|
|
|
|
|
|
|
|
|
|
#-------------张义---------------
|
|
|
|
|
|
|
|
|
|
#-------------薄鑫---------------
|
2026-09-20 17:06:24 +08:00
|
|
|
|
|
|
|
|
#-------------张昕浩---------------
|
|
|
|
|
app.include_router(example_router)
|
|
|
|
|
|
2026-09-20 19:45:36 +08:00
|
|
|
#-------------曾凯---------------
|
2026-09-20 17:06:24 +08:00
|
|
|
|
2026-09-20 19:45:36 +08:00
|
|
|
#-------------南方宇---------------
|
2026-09-20 17:06:24 +08:00
|
|
|
|
|
|
|
|
#-----------主程序----------------
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
uvicorn.run(app, host="0.0.0.0", port=23333)
|