aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-backend/src/routes/debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'thallium-backend/src/routes/debug.py')
-rw-r--r--thallium-backend/src/routes/debug.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/thallium-backend/src/routes/debug.py b/thallium-backend/src/routes/debug.py
index 7fe42da..fac40d7 100644
--- a/thallium-backend/src/routes/debug.py
+++ b/thallium-backend/src/routes/debug.py
@@ -15,6 +15,13 @@ async def get_templates(client: PrintfulClient) -> dict:
return resp.json()
[email protected]("/variants/{variant_id}")
+async def get_variant(client: PrintfulClient, variant_id: int) -> dict:
+ """Return all templates in printful."""
+ resp = await client.get(f"/products/variant/{variant_id}")
+ return resp.json()
+
+
@router.get("/oauth-scopes-v1")
async def get_oauth_scopes(client: PrintfulClient) -> dict:
"""Return all templates in printful."""