main.py 470 B

123456789101112131415161718
  1. from fastapi import FastAPI
  2. from alien_second.router import router
  3. from alien_gateway.config import settings
  4. app = FastAPI(
  5. title=f"{settings.PROJECT_NAME} - Second Hand Service",
  6. version="1.0.0"
  7. )
  8. app.include_router(router, prefix="/api/second", tags=["Second Hand"])
  9. @app.get("/health")
  10. async def health():
  11. return {"service": "alien_second", "status": "ok"}
  12. if __name__ == "__main__":
  13. import uvicorn
  14. uvicorn.run(app, host="0.0.0.0", port=8003)