remove support for GET /v1/accounts/me

This commit is contained in:
Jonathan Klabunde Tomer
2024-12-27 12:23:14 -08:00
committed by GitHub
parent 8c3ebdcbab
commit 541bf968e5
2 changed files with 3 additions and 12 deletions

View File

@@ -263,14 +263,6 @@ public class AccountController {
registrationRecoveryPasswordsManager.store(updatedAccount.getIdentifier(IdentityType.PNI), registrationRecoveryPassword));
}
@GET
@Path("/me")
@Deprecated() // use whoami
@Produces(MediaType.APPLICATION_JSON)
public AccountIdentityResponse getMe(@ReadOnly @Auth AuthenticatedDevice auth) {
return AccountIdentityResponseBuilder.fromAccount(auth.getAccount());
}
@GET
@Path("/whoami")
@Produces(MediaType.APPLICATION_JSON)