diff options
| author | 2024-08-19 00:27:43 +0100 | |
|---|---|---|
| committer | 2024-08-19 00:28:03 +0100 | |
| commit | 47f248cfd7754aebc82dbbff9efe3fe84edb90b1 (patch) | |
| tree | acfc9bc75d24b063232db33076c8fbc296c8cce2 /thallium-backend/src/routes/debug.py | |
| parent | Only deploy backend in CI (diff) | |
Caddy local support
Diffstat (limited to 'thallium-backend/src/routes/debug.py')
| -rw-r--r-- | thallium-backend/src/routes/debug.py | 7 |
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.""" |