15 lines
No EOL
310 B
Python
15 lines
No EOL
310 B
Python
from flask import Blueprint, jsonify, request
|
|
|
|
main = Blueprint("main", __name__)
|
|
|
|
|
|
@main.route("/")
|
|
def index():
|
|
"""Home page route."""
|
|
return jsonify({"message": "Flask App is running"})
|
|
|
|
|
|
@main.route("/health")
|
|
def health():
|
|
"""Health check endpoint."""
|
|
return jsonify({"status": "healthy"}) |