Fix typo in stats route

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

View File

@ -9,6 +9,6 @@ stats_blueprint.register_blueprint(command_stats_blueprint)
def get_nested_routes():
nested_routes = {
"commands": "/stats/commands"
}
return {"nested": nested_routes}, 200