From f7dce85e0bd22a3699b2ef13bafc88f9b1591833 Mon Sep 17 00:00:00 2001 From: CWX Date: Fri, 5 Jul 2024 19:21:21 +0100 Subject: [PATCH] update endpoint for airdrop loot --- project/src/callbacks/LocationCallbacks.ts | 4 ++-- project/src/routers/static/LocationStaticRouter.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/callbacks/LocationCallbacks.ts b/project/src/callbacks/LocationCallbacks.ts index 4ad4c054..77666cd7 100644 --- a/project/src/callbacks/LocationCallbacks.ts +++ b/project/src/callbacks/LocationCallbacks.ts @@ -37,8 +37,8 @@ export class LocationCallbacks } /** Handle client/location/getAirdropLoot */ - public getAirdropLoot(url: string, info: IEmptyRequestData, sessionID: string): string + public getAirdropLoot(url: string, info: IEmptyRequestData, sessionID: string): any { - return this.httpResponse.noBody(this.locationController.getAirdropLoot()); + return this.httpResponse.getBody(this.locationController.getAirdropLoot()); } } diff --git a/project/src/routers/static/LocationStaticRouter.ts b/project/src/routers/static/LocationStaticRouter.ts index cd264fe0..88f962b8 100644 --- a/project/src/routers/static/LocationStaticRouter.ts +++ b/project/src/routers/static/LocationStaticRouter.ts @@ -23,7 +23,7 @@ export class LocationStaticRouter extends StaticRouter }, ), new RouteAction( - "/client/location/getAirdropLoot", + "/client/airdrop/loot", async (url: string, info: any, sessionID: string, _output: string): Promise => { return this.locationCallbacks.getAirdropLoot(url, info, sessionID);