hello-api/app/main.py
devops 36a504077d
All checks were successful
Tests / Test passed: 2
hello-api-mb/pipeline/head This commit looks good
hello-api: platform se scaffold
2026-09-16 16:26:15 +00:00

16 lines
315 B
Python

import os
from flask import Flask, jsonify
app = Flask(__name__)
@app.get("/health")
def health():
return jsonify(status="ok")
@app.get("/version")
def version():
# Pipeline ka verify stage isi field ko check karta hai.
return jsonify(app="hello-api", version=os.environ.get("APP_VERSION", "dev"))