from fastapi import FastAPI from alien_store.router import router from alien_gateway.config import settings app = FastAPI( title=f"{settings.PROJECT_NAME} - Store Service", version="1.0.0" ) # 挂载业务路由 app.include_router(router, prefix="/api/store", tags=["Store"]) @app.get("/health") async def health(): return {"service": "alien_store", "status": "ok"} if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=8001)