"""Utility Handlers.""" from http import HTTPStatus from common_apispec import doc, marshal_with from flask import Blueprint, jsonify from payment import config base_api = Blueprint('base_api', __name__) @base_api.route(config.Config.HEALTH_CHECK, methods=['GET']) @doc(description='Check the health of the application.') @marshal_with( None, code=HTTPStatus.OK, description=HTTPStatus.OK.phrase, apply=False, ) def health(): """Check the health of the application.""" return jsonify({'status': 'ok'})