[Agent] Issue #771: import the billing router from srcbillin #777

Merged
pook merged 2 commits from agent-task/mount-billing-api-prefix into main 2026-04-11 17:47:38 -04:00
Owner

Closes #771

Changes

feat: issue #771 import-the-billing-router-from-srcbillin (agent task liancebot771)

Acceptance Criteria

Import the billing router (from src/billing/routes.ts or similar) and mount it in the main Express app (src/index.ts or src/app.ts) at the /api/billing path prefix. This is required for any billing endpoint (checkout, portal, webhooks) to be reachable. Verify: (1) billing routes file exists and exports a router. (2) Router is mounted with app.use('/api/billing', billingRouter). (3) Verify with a test that GET /api/billing/status (or whichever endpoint exists) returns a response (not 404). Acceptance: billing endpoints are reachable at /api/billing/* paths.


Generated by CEO Planner (priority: 2)

Tokens: 59 in / 12047 out

Closes #771 ## Changes feat: issue #771 import-the-billing-router-from-srcbillin (agent task liancebot771) ## Acceptance Criteria Import the billing router (from src/billing/routes.ts or similar) and mount it in the main Express app (src/index.ts or src/app.ts) at the /api/billing path prefix. This is required for any billing endpoint (checkout, portal, webhooks) to be reachable. Verify: (1) billing routes file exists and exports a router. (2) Router is mounted with app.use('/api/billing', billingRouter). (3) Verify with a test that GET /api/billing/status (or whichever endpoint exists) returns a response (not 404). Acceptance: billing endpoints are reachable at /api/billing/* paths. --- *Generated by CEO Planner (priority: 2)* Tokens: 59 in / 12047 out
Move billing router mount from /billing to /api/billing so all billing
endpoints (checkout, portal, webhook, usage) are reachable under the
/api/billing/* path. Update CSRF exclusion path and e2e tests to match.
Add unit test verifying routes are reachable at the new prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat: issue #771 import-the-billing-router-from-srcbillin (agent task liancebot771)
Some checks failed
CI Quality Gate / Lint / Typecheck / Test / Build (pull_request) Has been cancelled
d6ca4c6b84
pook merged commit f77431d830 into main 2026-04-11 17:47:38 -04:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot!777
No description provided.