From 6c2cc4273b3963e20ce113af4753a8aba1a97729 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 6 Jul 2025 19:40:01 -0400 Subject: [PATCH] subscription routes --- app/api/routes/routes.py | 7 +++++++ app/api/services/myproduct.py | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/app/api/routes/routes.py b/app/api/routes/routes.py index 13903dc..68c78dc 100644 --- a/app/api/routes/routes.py +++ b/app/api/routes/routes.py @@ -143,6 +143,13 @@ def myproduct_dash(): return response # /panel/myproduct/subscription +@api.route("/panel/myproduct/subscription", methods=["POST"]) +def myproduct_subscription(): + data = request.get_json() + logger.info(f"Route MyProduct Data ==>>>> {data}") + response = MyProductsService.process_subscription(data) + return response + # /panel/account/calendar @api.route("/panel/account/calendar", methods=["POST"]) diff --git a/app/api/services/myproduct.py b/app/api/services/myproduct.py index 94f1dd7..4771848 100644 --- a/app/api/services/myproduct.py +++ b/app/api/services/myproduct.py @@ -16,6 +16,17 @@ from app.config import Config class MyProductsService(BaseService): + @staticmethod + def process_subscription(data): + response_data = { + "subscription": "No ready", + "member_id": 1, + "uid": '', + } + return ResponseHelper.success(data=response_data) + + + @staticmethod def process_request(data): try: