feat: add admin-exclusive share-management page (#461)
* testing with all_shares * share table * share table * change icon on admin page * add share size to list --------- Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
@@ -11,6 +11,10 @@ import {
|
||||
} from "../types/share.type";
|
||||
import api from "./api.service";
|
||||
|
||||
const list = async (): Promise<MyShare[]> => {
|
||||
return (await api.get(`shares/all`)).data;
|
||||
};
|
||||
|
||||
const create = async (share: CreateShare) => {
|
||||
return (await api.post("shares", share)).data;
|
||||
};
|
||||
@@ -131,6 +135,7 @@ const removeReverseShare = async (id: string) => {
|
||||
};
|
||||
|
||||
export default {
|
||||
list,
|
||||
create,
|
||||
completeShare,
|
||||
revertComplete,
|
||||
|
||||
Reference in New Issue
Block a user