17/12/1404

This commit is contained in:
2026-03-07 14:56:57 +03:30
parent 9d0fa0bb64
commit fe33bff488
4 changed files with 23 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
import useAxios from "@/utils/useAxios";
export async function getSettings() {
return await useAxios.get(`api/get_settings`)
}
+1 -1
View File
@@ -1,8 +1,8 @@
import useAxios from "@/utils/useAxios";
import type {Password, User} from "@/models/login";
// import {Login} from "@/models/login";
export const getMe = async () => await useAxios.get<User>(`/customer/me`)
export const updateMe = async (obj: User) => await useAxios.post<User>(`/customer/me/update`, obj)
export const updatePass = async (obj: User) => await useAxios.post<Password>(`/customer/me/update`, obj)