|
|
@@ -9,34 +9,34 @@ import type { WechatCouponStockRoutes } from '@/server/api'
|
|
|
import type { WechatCouponRoutes } from '@/server/api'
|
|
|
import type { WechatPayRoutes } from '@/server/api'
|
|
|
|
|
|
-export const authClient = hc<AuthRoutes>('/api/v1', {
|
|
|
+export const authClient = hc<AuthRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1.auth
|
|
|
|
|
|
-export const userClient = hc<UserRoutes>('/api/v1', {
|
|
|
+export const userClient = hc<UserRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1.users
|
|
|
|
|
|
-export const roleClient = hc<RoleRoutes>('/api/v1', {
|
|
|
+export const roleClient = hc<RoleRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1.roles
|
|
|
|
|
|
-export const fileClient = hc<FileRoutes>('/api/v1', {
|
|
|
+export const fileClient = hc<FileRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1.files
|
|
|
|
|
|
-export const wechatPayConfigClient = hc<WechatPayConfigRoutes>('/api/v1', {
|
|
|
+export const wechatPayConfigClient = hc<WechatPayConfigRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1['wechat-pay-config']
|
|
|
|
|
|
-export const wechatCouponStockClient = hc<WechatCouponStockRoutes>('/api/v1', {
|
|
|
+export const wechatCouponStockClient = hc<WechatCouponStockRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1['wechat-coupon-stocks']
|
|
|
|
|
|
-export const wechatCouponClient = hc<WechatCouponRoutes>('/api/v1', {
|
|
|
+export const wechatCouponClient = hc<WechatCouponRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1['wechat-coupons']
|
|
|
|
|
|
-export const wechatPayClient = hc<WechatPayRoutes>('/api/v1', {
|
|
|
+export const wechatPayClient = hc<WechatPayRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1['wechat-pay']
|