mirror of https://github.com/stijndcl/didier
Fix typo in stats route
parent
66d6e2480f
commit
ce9ecc8c61
|
|
@ -1,8 +1,9 @@
|
||||||
|
from functions.database.commands import query_command_stats
|
||||||
from quart import Blueprint
|
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"])
|
@command_stats_blueprint.route("/", methods=["GET"])
|
||||||
def get_commands():
|
def get_commands():
|
||||||
return {}, 200
|
return {"usage": query_command_stats()}, 200
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@ stats_blueprint.register_blueprint(command_stats_blueprint)
|
||||||
def get_nested_routes():
|
def get_nested_routes():
|
||||||
nested_routes = {
|
nested_routes = {
|
||||||
"commands": "/stats/commands"
|
"commands": "/stats/commands"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {"nested": nested_routes}, 200
|
return {"nested": nested_routes}, 200
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue