This repository has been archived on 2024-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
from flask import jsonify
|
|
|
|
from . import bp
|
|
from .generate_stats import generate_stats
|
|
from ..cache import cache
|
|
|
|
|
|
@bp.route('/stats', methods=['GET'])
|
|
@cache.cached(timeout=5, query_string=True)
|
|
def get_stats():
|
|
return jsonify(generate_stats()), 200
|