26 lines
512 B
Python
26 lines
512 B
Python
from flask import Flask, jsonify
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return jsonify({"status": "healthy"}), 200
|
|
|
|
|
|
@app.get("/pricing")
|
|
def pricing():
|
|
return jsonify({
|
|
"service": "Startup Pricing Service",
|
|
"version": "v1",
|
|
"plans": [
|
|
{"name": "Basic", "price": 10},
|
|
{"name": "Pro", "price": 25},
|
|
{"name": "Enterprise", "price": 50}
|
|
]
|
|
}), 200
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=5000)
|