mitai-jinkendo/backend/routers
Lars ae47652d0c
All checks were successful
Deploy Development / deploy (push) Successful in 55s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s
feat: add user subscription info endpoints
New router: routers/subscription.py
Endpoints:
- GET /api/subscription/me - Own subscription info (tier, trial, grants)
- GET /api/subscription/usage - Feature usage with limits
- GET /api/subscription/limits - All feature limits for current tier

Features:
- Shows effective tier (considers access_grants)
- Lists active access grants (from coupons, trials)
- Per-feature usage tracking
- Email verification status

Uses new middleware: get_effective_tier(), check_feature_access()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 13:05:55 +01:00
..
__init__.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
activity.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
admin.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
auth.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
caliper.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
circumference.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
exportdata.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
importdata.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
insights.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
nutrition.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
photos.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
profiles.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
prompts.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
stats.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
subscription.py feat: add user subscription info endpoints 2026-03-19 13:05:55 +01:00
weight.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00