From 587aac380fbd99119ef4ccc9782919ff20a252a3 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 29 Aug 2021 16:47:15 -0300 Subject: [PATCH] add store blueprint --- litecord/blueprints/__init__.py | 2 ++ litecord/blueprints/store.py | 28 ++++++++++++++++++++++++++++ run.py | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 litecord/blueprints/store.py diff --git a/litecord/blueprints/__init__.py b/litecord/blueprints/__init__.py index 767bd70..e02db5b 100644 --- a/litecord/blueprints/__init__.py +++ b/litecord/blueprints/__init__.py @@ -36,6 +36,7 @@ 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 +from .store import bp as store __all__ = [ "gateway", @@ -57,4 +58,5 @@ __all__ = [ "read_states", "stickers", "applications", + "store", ] diff --git a/litecord/blueprints/store.py b/litecord/blueprints/store.py new file mode 100644 index 0000000..68c1c5c --- /dev/null +++ b/litecord/blueprints/store.py @@ -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 . + +""" + +from quart import Blueprint +from pathlib import Path + +bp = Blueprint("store", __name__) + + +@bp.route("/published-listings/skus//subscription-plans") +async def _stub_sku_plans(sku_id): + return [] diff --git a/run.py b/run.py index d2c19cd..b85e894 100644 --- a/run.py +++ b/run.py @@ -53,6 +53,7 @@ from litecord.blueprints import ( read_states, stickers, applications, + store, ) # those blueprints are separated from the "main" ones @@ -173,6 +174,7 @@ def set_blueprints(app_): read_states: "", stickers: "", applications: "/applications", + store: "/store", } for bp, suffix in bps.items():