Fix typo in stats route

This commit is contained in:
Stijn De Clercq 2021-09-06 01:56:16 +02:00
parent 66d6e2480f
commit ce9ecc8c61
2 changed files with 4 additions and 3 deletions

View file

@ -1,8 +1,9 @@
from functions.database.commands import query_command_stats
from quart import Blueprint
command_stats_blueprint: Blueprint = Blueprint("command_stats", __name__, "/commands")
command_stats_blueprint: Blueprint = Blueprint("command_stats", __name__, url_prefix="/commands")
@command_stats_blueprint.route("/", methods=["GET"])
def get_commands():
return {}, 200
return {"usage": query_command_stats()}, 200