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 "randomTime": false
}, },
"save": { "save": {
"loot": true, "loot": true
"durability": true
}, },
"carExtracts": [ "carExtracts": [
"Dorms V-Ex", "Dorms V-Ex",

View File

@ -65,15 +65,6 @@ export class InraidCallbacks
return this.httpResponse.noBody(this.inraidController.getInraidConfig().raidMenuSettings); 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 * Handle singleplayer/airdrop/config
* @returns JSON as string * @returns JSON as string

View File

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

View File

@ -20,13 +20,6 @@ export class InraidStaticRouter extends StaticRouter
return this.inraidCallbacks.getRaidEndState(); 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( new RouteAction(
"/singleplayer/settings/raid/menu", "/singleplayer/settings/raid/menu",
(url: string, info: any, sessionID: string, output: string): any => (url: string, info: any, sessionID: string, output: string): any =>