FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 rivejä
514 B

  1. "use server";
  2. import { serverFetchWithNoContent } from '@/app/utils/fetchUtil';
  3. import { BASE_API_URL } from "@/config/api";
  4. export interface ImportPoForm {
  5. dateFrom: string,
  6. dateTo: string,
  7. }
  8. export interface ImportTestingForm {
  9. po: ImportPoForm
  10. }
  11. export const testImportPo = async (data: ImportPoForm) => {
  12. return serverFetchWithNoContent(`${BASE_API_URL}/m18/po`, {
  13. method: "POST",
  14. body: JSON.stringify(data),
  15. headers: { "Content-Type": "application/json" },
  16. })
  17. }