feat: add billing switch. (#1789)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { get } from './base'
|
||||
import type { CurrentPlanInfoBackend, SubscriptionUrlsBackend } from '@/app/components/billing/type'
|
||||
|
||||
export const fetchCurrentPlanInfo = () => {
|
||||
return get<Promise<CurrentPlanInfoBackend>>('/billing/info')
|
||||
return get<Promise<CurrentPlanInfoBackend>>('/features')
|
||||
}
|
||||
|
||||
export const fetchSubscriptionUrls = (plan: string, interval: string) => {
|
||||
|
||||
Reference in New Issue
Block a user