Update Profile v2 endpoint to use miniprofile and allow v2 endpoint to get miniprofile from only loginrequest

This commit is contained in:
CWX
2025-09-19 18:46:05 +01:00
parent 1bc3ef63f4
commit ca28cb2926
5 changed files with 17 additions and 7 deletions
@@ -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));
}
}