From 993a2f3b0840a59dbb0c37e85727efcb0b7ec356 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Fri, 28 Sep 2018 20:08:07 -0300 Subject: [PATCH] blueprints.channels: add dummy search route --- litecord/blueprints/guilds.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/litecord/blueprints/guilds.py b/litecord/blueprints/guilds.py index d5782ff..2f7b3b0 100644 --- a/litecord/blueprints/guilds.py +++ b/litecord/blueprints/guilds.py @@ -453,3 +453,17 @@ async def create_ban(guild_id, member_id): }, **(await app.storage.get_user(member_id))}) return '', 204 + + +@bp.route('//messages/search') +async def search_messages(guild_id): + user_id = await token_check() + await guild_check(user_id, guild_id) + + # TODO: implement route + + return jsonify({ + 'total_results': 0, + 'messages': [], + 'analytics_id': 'ass', + })