0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 16:10:43 -05:00

Renamed function to match endpoint

This commit is contained in:
Chomp 2024-11-25 13:49:35 +00:00
parent b9991b3825
commit 45d55ff307
2 changed files with 7 additions and 2 deletions

View File

@ -44,10 +44,11 @@ export class MatchCallbacks {
}
/** Handle client/match/group/exit_from_menu */
public exitToMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
public exitFromMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
return this.httpResponse.nullResponse();
}
/** Handle client/match/group/current */
public groupCurrent(
url: string,
info: IEmptyRequestData,
@ -56,10 +57,12 @@ export class MatchCallbacks {
return this.httpResponse.getBody({ squad: [] });
}
/** Handle client/match/group/looking/start */
public startGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
return this.httpResponse.nullResponse();
}
/** Handle client/match/group/looking/stop */
public stopGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
return this.httpResponse.nullResponse();
}
@ -113,10 +116,12 @@ export class MatchCallbacks {
return this.httpResponse.getBody(true);
}
/** Handle client/putMetrics */
public putMetrics(url: string, request: IPutMetricsRequestData, sessionId: string): INullResponseData {
return this.httpResponse.nullResponse();
}
/** Handle client/analytics/event-disconnect */
public eventDisconnect(url: string, request: IPutMetricsRequestData, sessionId: string): INullResponseData {
return this.httpResponse.nullResponse();
}

View File

@ -96,7 +96,7 @@ export class MatchStaticRouter extends StaticRouter {
new RouteAction(
"/client/match/group/exit_from_menu",
async (url: string, info: any, sessionID: string, output: string): Promise<INullResponseData> => {
return this.matchCallbacks.exitToMenu(url, info, sessionID);
return this.matchCallbacks.exitFromMenu(url, info, sessionID);
},
),
new RouteAction(