Remove unused /singleplayer/settings/weapon/durability endpoint

This commit is contained in:
Dev 2024-04-05 21:46:28 +01:00 committed by Refringe
parent 798dcfffaa
commit 18b28a6d0b
No known key found for this signature in database
GPG Key ID: 7715B85B4A6306ED
4 changed files with 1 additions and 19 deletions

View File

@ -11,8 +11,7 @@
"randomTime": false
},
"save": {
"loot": true,
"durability": true
"loot": true
},
"carExtracts": [
"Dorms V-Ex",

View File

@ -65,15 +65,6 @@ export class InraidCallbacks
return this.httpResponse.noBody(this.inraidController.getInraidConfig().raidMenuSettings);
}
/**
* Handle singleplayer/settings/weapon/durability
* @returns
*/
public getWeaponDurability(): string
{
return this.httpResponse.noBody(this.inraidController.getInraidConfig().save.durability);
}
/**
* Handle singleplayer/airdrop/config
* @returns JSON as string

View File

@ -42,5 +42,4 @@ export interface Save
{
/** Should loot gained from raid be saved */
loot: boolean;
durability: boolean;
}

View File

@ -20,13 +20,6 @@ export class InraidStaticRouter extends StaticRouter
return this.inraidCallbacks.getRaidEndState();
},
),
new RouteAction(
"/singleplayer/settings/weapon/durability",
(url: string, info: any, sessionID: string, output: string): any =>
{
return this.inraidCallbacks.getWeaponDurability();
},
),
new RouteAction(
"/singleplayer/settings/raid/menu",
(url: string, info: any, sessionID: string, output: string): any =>