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.
 
 

25 rivejä
673 B

  1. "use server";
  2. import { serverFetchString } from "@/app/utils/fetchUtil";
  3. import { BASE_API_URL } from "@/config/api";
  4. export const importWarehouse = async (data: FormData) => {
  5. const importWarehouse = await serverFetchString<string>(
  6. `${BASE_API_URL}/warehouse/import`,
  7. {
  8. method: "POST",
  9. body: data,
  10. },
  11. );
  12. return importWarehouse;
  13. }
  14. export const importNewWarehouse = async (data: FormData) => {
  15. const importWarehouse = await serverFetchString<string>(
  16. `${BASE_API_URL}/warehouse/importNew`,
  17. {
  18. method: "POST",
  19. body: data,
  20. },
  21. );
  22. return importWarehouse;
  23. }