|
@@ -0,0 +1,18 @@
|
|
|
|
|
+from fastapi import FastAPI
|
|
|
|
|
+from alien_store_platform.router import router
|
|
|
|
|
+from alien_gateway.config import settings
|
|
|
|
|
+
|
|
|
|
|
+app = FastAPI(
|
|
|
|
|
+ title=f"{settings.PROJECT_NAME} - Platform Service",
|
|
|
|
|
+ version="1.0.0"
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
|
|
+app.include_router(router, prefix="/api/platform", tags=["Platform"])
|
|
|
|
|
+
|
|
|
|
|
+@app.get("/health")
|
|
|
|
|
+async def health():
|
|
|
|
|
+ return {"service": "alien_store_platform", "status": "ok"}
|
|
|
|
|
+
|
|
|
|
|
+if __name__ == "__main__":
|
|
|
|
|
+ import uvicorn
|
|
|
|
|
+ uvicorn.run(app, host="0.0.0.0", port=8002)
|