media
This commit is contained in:
@@ -31,3 +31,7 @@ export const apiGetCurrentUser = async () => {
|
||||
return response?.data;
|
||||
};
|
||||
|
||||
export const apiChangePassword = async (id:string,payload: any) => {
|
||||
const response = await api.patch(API.User.CHANGE_PASSWORD(id), payload);
|
||||
return response?.data;
|
||||
};
|
||||
|
||||
10
src/service/mediaService.ts
Normal file
10
src/service/mediaService.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import api from "@/config/config";
|
||||
import { API } from "../../api";
|
||||
import { payloadPresignedMedia } from "@/interface/media";
|
||||
|
||||
export const apiGetCurrentUserMedia = async (payload: payloadPresignedMedia) => {
|
||||
const response = await api.get(API.Media.PRESIGNED, {
|
||||
params: payload,
|
||||
});
|
||||
return response?.data;
|
||||
};
|
||||
Reference in New Issue
Block a user