feat: Add more pages
This commit is contained in:
@@ -76,6 +76,16 @@ class MediaStore {
|
||||
});
|
||||
return response.data;
|
||||
};
|
||||
|
||||
createMedia = async (name: string, type: string) => {
|
||||
const response = await authInstance.post("/media", {
|
||||
media_name: name,
|
||||
media_type: type,
|
||||
});
|
||||
runInAction(() => {
|
||||
this.media.push(response.data);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
export const mediaStore = new MediaStore();
|
||||
|
||||
Reference in New Issue
Block a user