mirror of https://gitlab.com/litecord/litecord.git
add store blueprint
This commit is contained in:
parent
f0c0b8e9c2
commit
587aac380f
|
|
@ -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",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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
2
run.py
|
|
@ -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():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue