move dummy endpoint

This commit is contained in:
CWX 2024-07-04 21:45:19 +01:00
parent 7982f85e63
commit 136dc111f4
2 changed files with 16 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -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<INullResponseData> =>
{
return this.httpResponse.nullResponse();
return this.gameCallbacks.getSurvey(url, info, sessionID);
},
)
]);