fix: add GET /subscriptions endpoint to silence 404s

The frontend calls GET /subscriptions but only GET /subscriptions/active
existed. Add a root GET handler that returns the same data.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Dorian
2026-02-13 21:57:17 +00:00
parent f3a9d3d614
commit 671afd2915

View File

@@ -60,6 +60,16 @@ export class SubscriptionsController {
); );
} }
/**
* Get all subscriptions for the current user.
* The frontend calls GET /subscriptions and filters client-side.
*/
@Get()
@UseGuards(HybridAuthGuard)
async getSubscriptions(@User() user: RequestUser['user']) {
return await this.subscriptionsService.getActiveSubscriptions(user.id);
}
/** /**
* Get the current user's active subscriptions. * Get the current user's active subscriptions.
*/ */