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