mirror of
https://github.com/stijndcl/didier.git
synced 2026-06-29 17:39:57 +02:00
Fix typo in stats route
This commit is contained in:
parent
66d6e2480f
commit
ce9ecc8c61
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue