add store blueprint

This commit is contained in:
Luna 2021-08-29 16:47:15 -03:00
parent f0c0b8e9c2
commit 587aac380f
3 changed files with 32 additions and 0 deletions

View File

@ -36,6 +36,7 @@ from .dm_channels import bp as dm_channels
from .read_states import bp as read_states from .read_states import bp as read_states
from .stickers import bp as stickers from .stickers import bp as stickers
from .applications import bp as applications from .applications import bp as applications
from .store import bp as store
__all__ = [ __all__ = [
"gateway", "gateway",
@ -57,4 +58,5 @@ __all__ = [
"read_states", "read_states",
"stickers", "stickers",
"applications", "applications",
"store",
] ]

View File

@ -0,0 +1,28 @@
"""
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
from pathlib import Path
bp = Blueprint("store", __name__)
@bp.route("/published-listings/skus/<sku_id>/subscription-plans")
async def _stub_sku_plans(sku_id):
return []

2
run.py
View File

@ -53,6 +53,7 @@ from litecord.blueprints import (
read_states, read_states,
stickers, stickers,
applications, applications,
store,
) )
# those blueprints are separated from the "main" ones # those blueprints are separated from the "main" ones
@ -173,6 +174,7 @@ def set_blueprints(app_):
read_states: "", read_states: "",
stickers: "", stickers: "",
applications: "/applications", applications: "/applications",
store: "/store",
} }
for bp, suffix in bps.items(): for bp, suffix in bps.items():