From 2a71d9f131296468f25068f5d0a38793e061f239 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 29 Aug 2021 15:05:46 -0300 Subject: [PATCH] add applications stub blueprint --- litecord/blueprints/__init__.py | 2 ++ litecord/blueprints/applications.py | 27 +++++++++++++++++++++++++++ run.py | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 litecord/blueprints/applications.py diff --git a/litecord/blueprints/__init__.py b/litecord/blueprints/__init__.py index c068ce9..767bd70 100644 --- a/litecord/blueprints/__init__.py +++ b/litecord/blueprints/__init__.py @@ -35,6 +35,7 @@ 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 +from .applications import bp as applications __all__ = [ "gateway", @@ -55,4 +56,5 @@ __all__ = [ "dm_channels", "read_states", "stickers", + "applications", ] diff --git a/litecord/blueprints/applications.py b/litecord/blueprints/applications.py new file mode 100644 index 0000000..5b789c2 --- /dev/null +++ b/litecord/blueprints/applications.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("applications", __name__) + + +@bp.route("/detectable") +async def _detectable_stub(): + return jsonify([]) diff --git a/run.py b/run.py index 19342cb..d2c19cd 100644 --- a/run.py +++ b/run.py @@ -52,6 +52,7 @@ from litecord.blueprints import ( dm_channels, read_states, stickers, + applications, ) # those blueprints are separated from the "main" ones @@ -171,6 +172,7 @@ def set_blueprints(app_): instance_invites: "/admin/instance/invites", read_states: "", stickers: "", + applications: "/applications", } for bp, suffix in bps.items():