profile update

This commit is contained in:
2026-04-07 12:20:05 +07:00
parent a1af516879
commit 91f3b16634
9 changed files with 227 additions and 135 deletions

View 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;
};