Update Profile v2 endpoint to use miniprofile and allow v2 endpoint to get miniprofile from only loginrequest
This commit is contained in:
@@ -19,7 +19,8 @@ public class LauncherV2Controller(
|
||||
DatabaseService databaseService,
|
||||
ServerLocalisationService serverLocalisationService,
|
||||
ConfigServer configServer,
|
||||
Watermark watermark
|
||||
Watermark watermark,
|
||||
ProfileController profileController
|
||||
)
|
||||
{
|
||||
protected readonly CoreConfig CoreConfig = configServer.GetConfig<CoreConfig>();
|
||||
@@ -192,4 +193,9 @@ public class LauncherV2Controller(
|
||||
{
|
||||
return saveServer.GetProfile(sessionId);
|
||||
}
|
||||
|
||||
public MiniProfile? GetMiniProfileFromUsername(LoginRequestData info)
|
||||
{
|
||||
return profileController.GetMiniProfile(GetSessionId(info));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user