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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user