| 123456789101112131415161718 |
- from fastapi import FastAPI
- from alien_second.router import router
- from alien_gateway.config import settings
- app = FastAPI(
- title=f"{settings.PROJECT_NAME} - Second Hand Service",
- version="1.0.0"
- )
- app.include_router(router, prefix="/api/second", tags=["Second Hand"])
- @app.get("/health")
- async def health():
- return {"service": "alien_second", "status": "ok"}
- if __name__ == "__main__":
- import uvicorn
- uvicorn.run(app, host="0.0.0.0", port=8003)
|