From 136dc111f4548b276e6dd47042f6a3bff932c52d Mon Sep 17 00:00:00 2001 From: CWX Date: Thu, 4 Jul 2024 21:45:19 +0100 Subject: [PATCH] move dummy endpoint --- project/src/callbacks/GameCallbacks.ts | 15 +++++++++++++++ project/src/routers/static/GameStaticRouter.ts | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/project/src/callbacks/GameCallbacks.ts b/project/src/callbacks/GameCallbacks.ts index 82048e2d..aa7f2b47 100644 --- a/project/src/callbacks/GameCallbacks.ts +++ b/project/src/callbacks/GameCallbacks.ts @@ -163,6 +163,11 @@ export class GameCallbacks implements OnLoad return this.httpResponse.noBody({ Version: this.watermark.getInGameVersionLabel() }); } + /** + * Handle /client/report/send & /client/reports/lobby/send + * @returns INullResponseData + */ + // eslint-disable-next-line @typescript-eslint/no-unused-vars public reportNickname(url: string, info: IUIDRequestData, sessionID: string): INullResponseData { return this.httpResponse.nullResponse(); @@ -177,4 +182,14 @@ export class GameCallbacks implements OnLoad { return this.httpResponse.noBody(this.gameController.getRaidTime(sessionID, request)); } + + /** + * Handle /client/survey + * @returns INullResponseData + */ + // eslint-disable-next-line @typescript-eslint/no-unused-vars + public getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData + { + return this.httpResponse.nullResponse(); + } } diff --git a/project/src/routers/static/GameStaticRouter.ts b/project/src/routers/static/GameStaticRouter.ts index e5ca4f50..b59b585f 100644 --- a/project/src/routers/static/GameStaticRouter.ts +++ b/project/src/routers/static/GameStaticRouter.ts @@ -166,7 +166,7 @@ export class GameStaticRouter extends StaticRouter // eslint-disable-next-line @typescript-eslint/no-unused-vars async (url: string, info: any, sessionID: string, output: string): Promise => { - return this.httpResponse.nullResponse(); + return this.gameCallbacks.getSurvey(url, info, sessionID); }, ) ]);