profile update
This commit is contained in:
14
src/service/userService.ts
Normal file
14
src/service/userService.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import api from "@/config/config";
|
||||
import { API } from "../../api";
|
||||
import { Profile } from "@/interface/user";
|
||||
|
||||
export const apiGetCurrentUserMedia = async () => {
|
||||
const response = await api.get(API.User.MEDIA);
|
||||
return response?.data;
|
||||
};
|
||||
|
||||
export const apiUpdateUser = async (id: number | string, payload: Profile) => {
|
||||
const response = await api.put(API.User.Update(id), payload);
|
||||
return response?.data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user