This commit is contained in:
IGNY8 VPS (Salman)
2025-12-13 13:43:55 +00:00
parent ad895fcb3a
commit db1fd2fff8
4 changed files with 175 additions and 232 deletions

View File

@@ -985,6 +985,16 @@ export async function cancelSubscription(subscriptionId: number): Promise<{ mess
});
}
// ============================================================================
// PUBLIC PLANS (for marketing/pricing page)
// ============================================================================
export async function getPublicPlans(): Promise<Plan[]> {
// Use the existing auth/plans endpoint which already filters for public plans
const response = await fetchAPI('/v1/auth/plans/');
return response.results || response;
}
// ============================================================================
// USAGE SUMMARY (PLAN LIMITS)
// ============================================================================