From 1818f930196dd27b8092a112422a4fb56bea120c Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 29 Aug 2021 14:59:37 -0300 Subject: [PATCH] add stickers stub blueprint --- litecord/blueprints/__init__.py | 2 ++ litecord/blueprints/stickers.py | 27 +++++++++++++++++++++++++++ run.py | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 litecord/blueprints/stickers.py diff --git a/litecord/blueprints/__init__.py b/litecord/blueprints/__init__.py index 1911c12..c068ce9 100644 --- a/litecord/blueprints/__init__.py +++ b/litecord/blueprints/__init__.py @@ -34,6 +34,7 @@ from .static import bp as static from .attachments import bp as attachments from .dm_channels import bp as dm_channels from .read_states import bp as read_states +from .stickers import bp as stickers __all__ = [ "gateway", @@ -53,4 +54,5 @@ __all__ = [ "attachments", "dm_channels", "read_states", + "stickers", ] diff --git a/litecord/blueprints/stickers.py b/litecord/blueprints/stickers.py new file mode 100644 index 0000000..afd8297 --- /dev/null +++ b/litecord/blueprints/stickers.py @@ -0,0 +1,27 @@ +""" + +Litecord +Copyright (C) 2018-2019 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + +from quart import Blueprint, jsonify + +bp = Blueprint("stickers", __name__) + + +@bp.route("/sticker-packs") +async def _stub_sticker_packs(): + return jsonify({"sticker_packs": []}) diff --git a/run.py b/run.py index 2118c2c..19342cb 100644 --- a/run.py +++ b/run.py @@ -51,6 +51,7 @@ from litecord.blueprints import ( attachments, dm_channels, read_states, + stickers, ) # those blueprints are separated from the "main" ones @@ -169,6 +170,7 @@ def set_blueprints(app_): users_admin: "/admin/users", instance_invites: "/admin/instance/invites", read_states: "", + stickers: "", } for bp, suffix in bps.items():