From 7982f85e63faa02719fa8b320adb7e4884f36dc0 Mon Sep 17 00:00:00 2001 From: CWX Date: Thu, 4 Jul 2024 21:33:00 +0100 Subject: [PATCH] add dummy endpoint --- project/src/routers/static/GameStaticRouter.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/project/src/routers/static/GameStaticRouter.ts b/project/src/routers/static/GameStaticRouter.ts index 46c0104c..e5ca4f50 100644 --- a/project/src/routers/static/GameStaticRouter.ts +++ b/project/src/routers/static/GameStaticRouter.ts @@ -13,11 +13,15 @@ import { ISendReportRequest } from "@spt/models/eft/game/ISendReportRequest"; import { IServerDetails } from "@spt/models/eft/game/IServerDetails"; import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData"; import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData"; +import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil"; @injectable() export class GameStaticRouter extends StaticRouter { - constructor(@inject("GameCallbacks") protected gameCallbacks: GameCallbacks) + constructor( + @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, + @inject("GameCallbacks") protected gameCallbacks: GameCallbacks + ) { super([ new RouteAction( @@ -157,6 +161,14 @@ export class GameStaticRouter extends StaticRouter return this.gameCallbacks.getRaidTime(url, info, sessionID); }, ), + new RouteAction( + "/client/survey", + // eslint-disable-next-line @typescript-eslint/no-unused-vars + async (url: string, info: any, sessionID: string, output: string): Promise => + { + return this.httpResponse.nullResponse(); + }, + ) ]); } }