mitai-jinkendo/backend/routers
Lars a849d5db9e
All checks were successful
Deploy Development / deploy (push) Successful in 56s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s
feat: add admin management routers for subscription system
Five new admin routers:

1. routers/features.py
   - GET/POST/PUT/DELETE /api/features
   - Feature registry CRUD
   - Allows adding new limitable features without schema changes

2. routers/tiers_mgmt.py
   - GET/POST/PUT/DELETE /api/tiers
   - Subscription tier management
   - Price configuration, sort order

3. routers/tier_limits.py
   - GET /api/tier-limits - Complete Tier x Feature matrix
   - PUT /api/tier-limits - Update single limit
   - PUT /api/tier-limits/batch - Batch update
   - DELETE /api/tier-limits - Remove limit (fallback to default)
   - Matrix editor backend

4. routers/user_restrictions.py
   - GET/POST/PUT/DELETE /api/user-restrictions
   - User-specific feature overrides
   - Highest priority in access hierarchy
   - Includes reason field for documentation

5. routers/access_grants.py
   - GET /api/access-grants - List grants with filters
   - POST /api/access-grants - Manual grant creation
   - PUT /api/access-grants/{id} - Extend/pause grants
   - DELETE /api/access-grants/{id} - Revoke access
   - Activity logging

All endpoints require admin authentication.
Completes backend API for v9c Phase 2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 13:09:33 +01:00
..
__init__.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
access_grants.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +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
coupons.py feat: add coupon management and redemption 2026-03-19 13:07:09 +01:00
exportdata.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
features.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +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
tier_limits.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
tiers_mgmt.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
user_restrictions.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
weight.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00