17/12/1404
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import useAxios from "@/utils/useAxios";
|
||||
|
||||
export async function getSettings() {
|
||||
return await useAxios.get(`api/get_settings`)
|
||||
}
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user