controller.py 458 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""The /misc controller provides an API for everything that does not belong
in any of the other categories."""

import logging
from typing import Tuple

from flask import Blueprint, jsonify, Response


misc_blueprint = Blueprint('misc_blueprint', __name__)
logger = logging.getLogger(__name__)


@misc_blueprint.route('/version', methods=['GET'])
def get_version() -> Tuple[Response, int]:
16
    version = '0.6.0'
17
    return jsonify({'version': version}), 201