mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-05-20 15:49:34 +05:00
feat: multiple mod deletion
This commit is contained in:
parent
34df17d4dd
commit
01cef9a6ea
3 changed files with 96 additions and 3 deletions
|
@ -15,6 +15,7 @@ type _PACKS_ENDPOINT = {
|
|||
type _MOD_ENDPOINT = {
|
||||
addMod: string;
|
||||
deleteMod: string;
|
||||
deleteModBulk: string;
|
||||
};
|
||||
|
||||
export const PACK_ENDPOINT = (endpoint: keyof _PACK_ENDPOINT, id: string) => {
|
||||
|
@ -68,6 +69,7 @@ export const MOD_ENDPOINT = (
|
|||
const _endpoints = {
|
||||
addMod: `${API}/pack/${id}/mod/add`,
|
||||
deleteMod: `${API}/pack/${id}/mod/${slug}/delete`,
|
||||
deleteModBulk: `${API}/pack/${id}/mods/delete`,
|
||||
};
|
||||
return _endpoints[endpoint];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue