add applications stub blueprint

This commit is contained in:
Luna 2021-08-29 15:05:46 -03:00
parent 1818f93019
commit 2a71d9f131
3 changed files with 31 additions and 0 deletions

View File

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

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("applications", __name__)
@bp.route("/detectable")
async def _detectable_stub():
return jsonify([])

2
run.py
View File

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