|
- "use server";
-
- import { serverFetchWithNoContent } from '@/app/utils/fetchUtil';
- import { BASE_API_URL } from "@/config/api";
-
- export interface ImportPoForm {
- dateFrom: string,
- dateTo: string,
- }
-
- export interface ImportTestingForm {
- po: ImportPoForm
- }
-
- export const testImportPo = async (data: ImportPoForm) => {
- return serverFetchWithNoContent(`${BASE_API_URL}/m18/po`, {
- method: "POST",
- body: JSON.stringify(data),
- headers: { "Content-Type": "application/json" },
- })
- }
|