main.py 460 B

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