create address + fix location restaurant

This commit is contained in:
hamid zarghami
2025-11-27 09:47:14 +03:30
parent b3716d8602
commit fa7f95df43
17 changed files with 711 additions and 368 deletions
@@ -0,0 +1,12 @@
import { api } from "@/lib/api/axiosInstance";
import { CreateAddressType } from "../types/Types";
export const getAddresses = async () => {
const { data } = await api.get("/public/user/addresses");
return data;
};
export const createAddress = async (params: CreateAddressType) => {
const { data } = await api.post("/public/user/addresses", params);
return data;
};