init commit. Skeleton prepared
This commit is contained in:
11
services/payments/src/app/main.py
Normal file
11
services/payments/src/app/main.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from fastapi import FastAPI
|
||||
from .api.routes.ping import router as ping_router
|
||||
|
||||
app = FastAPI(title="PAYMENTS Service")
|
||||
|
||||
@app.get("/health")
|
||||
def health():
|
||||
return {"status": "ok", "service": "payments"}
|
||||
|
||||
# v1 API
|
||||
app.include_router(ping_router, prefix="/v1")
|
||||
Reference in New Issue
Block a user