mirror of https://github.com/ivanch/tcc.git
20 lines
367 B
Python
20 lines
367 B
Python
from flask import jsonify, Blueprint
|
|
|
|
status_blueprint = Blueprint('status_blueprint', __name__)
|
|
|
|
|
|
class StatusController:
|
|
def __init__(self):
|
|
pass
|
|
|
|
def return_ok(self):
|
|
return jsonify(status=200)
|
|
|
|
|
|
status_controller = StatusController()
|
|
|
|
|
|
@status_blueprint.route('/status/ok', methods=['GET'])
|
|
def return_ok():
|
|
return jsonify(status=200)
|