15 lines
417 B
TypeScript
15 lines
417 B
TypeScript
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;
|
|
};
|
|
|