10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
import apiClient from './client'
|
|
import type { MonthlyOrderSetting } from '@/types/api'
|
|
|
|
export const monthlyOrdersApi = {
|
|
getSettings: () =>
|
|
apiClient.get<MonthlyOrderSetting>('/monthly-orders/settings'),
|
|
|
|
saveSettings: (data: MonthlyOrderSetting) =>
|
|
apiClient.post<{status: string}>('/monthly-orders/settings', data),
|
|
} |