From 9b0171ad3294ef31d1c2ce8415f7a68c4b8f816d Mon Sep 17 00:00:00 2001 From: gabixdev Date: Mon, 3 Dec 2018 01:52:36 +0100 Subject: [PATCH] Add documented endpoint back --- litecord/blueprints/guilds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litecord/blueprints/guilds.py b/litecord/blueprints/guilds.py index 715d314..032d07a 100644 --- a/litecord/blueprints/guilds.py +++ b/litecord/blueprints/guilds.py @@ -253,7 +253,8 @@ async def _update_guild(guild_id): return jsonify(guild) -@bp.route('//delete', methods=['POST']) +@bp.route('/', methods=['DELETE']) +@bp.route('//delete', methods=['POST']) # this one is not actually documented, but it's used by Discord client async def delete_guild(guild_id): """Delete a guild.""" user_id = await token_check()