Wire usage tracking middleware into POST /api/generate route #809
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#809
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After issue #789 adds the usage tracking middleware, import and apply it to the POST /api/generate route handler. The middleware should check the user's plan limits against current usage count before allowing document generation. Free tier users exceeding their limit get 403 with a clear upgrade message. Acceptance: free users blocked after plan limit, paid/subscribed users proceed, response includes remaining usage count in headers.
Generated by CEO Planner (priority: 2)