Skip to content

Commit 28d296e

Browse files
committed
feat: add FastAPI app entrypoint with health check
1 parent ad2bff0 commit 28d296e

File tree

1 file changed

+6
-6
lines changed
  • services/matching-service/app

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from fastapi import FastAPI
2-
from app.routers import hello
2+
from app.routers import match
33

4-
app = FastAPI()
4+
app = FastAPI(title="Matching Service")
55

6-
app.include_router(hello.router)
6+
app.include_router(match.router, prefix="/match", tags=["Match"])
77

8-
@app.get("/")
9-
def root():
10-
return {"message": "Matching Service is running"}
8+
@app.get("/health")
9+
async def health_check():
10+
return {"status": "Healthy"}

0 commit comments

Comments
 (0)