Removed unused endpoint + related code /raid/profile/list

This commit is contained in:
Dev 2024-03-09 16:38:43 +00:00
parent b11c9579b5
commit 5011af03ea
3 changed files with 0 additions and 27 deletions

View File

@ -121,13 +121,6 @@ export class MatchCallbacks
return this.httpResponse.nullResponse(); return this.httpResponse.nullResponse();
} }
/** Handle raid/profile/list */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public getProfile(url: string, info: IGetProfileRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>
{
return this.httpResponse.getBody(this.matchController.getProfile(info));
}
// Handle client/match/available // Handle client/match/available
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
public serverAvailable(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<boolean> public serverAvailable(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<boolean>

View File

@ -71,22 +71,6 @@ export class MatchController
return this.matchConfig.enabled; return this.matchConfig.enabled;
} }
/** Handle raid/profile/list */
public getProfile(info: IGetProfileRequestData): IPmcData[]
{
if (info.profileId.includes("pmcAID"))
{
return this.profileHelper.getCompleteProfile(info.profileId.replace("pmcAID", "AID"));
}
if (info.profileId.includes("scavAID"))
{
return this.profileHelper.getCompleteProfile(info.profileId.replace("scavAID", "AID"));
}
return [];
}
/** Handle client/match/group/create */ /** Handle client/match/group/create */
public createGroup(sessionID: string, info: ICreateGroupRequestData): any public createGroup(sessionID: string, info: ICreateGroupRequestData): any
{ {

View File

@ -9,10 +9,6 @@ export class MatchStaticRouter extends StaticRouter
constructor(@inject("MatchCallbacks") protected matchCallbacks: MatchCallbacks) constructor(@inject("MatchCallbacks") protected matchCallbacks: MatchCallbacks)
{ {
super([ super([
new RouteAction("/raid/profile/list", (url: string, info: any, sessionID: string, output: string): any =>
{
return this.matchCallbacks.getProfile(url, info, sessionID);
}),
new RouteAction( new RouteAction(
"/client/match/available", "/client/match/available",
(url: string, info: any, sessionID: string, output: string): any => (url: string, info: any, sessionID: string, output: string): any =>