add stickers stub blueprint

This commit is contained in:
Luna 2021-08-29 14:59:37 -03:00
parent 1a95e95303
commit 1818f93019
3 changed files with 31 additions and 0 deletions

View File

@ -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",
]

View File

@ -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 <http://www.gnu.org/licenses/>.
"""
from quart import Blueprint, jsonify
bp = Blueprint("stickers", __name__)
@bp.route("/sticker-packs")
async def _stub_sticker_packs():
return jsonify({"sticker_packs": []})

2
run.py
View File

@ -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():