mirror of https://gitlab.com/litecord/litecord.git
add applications stub blueprint
This commit is contained in:
parent
1818f93019
commit
2a71d9f131
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
2
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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue