getaccountinfo endpoint renamed
This commit is contained in:
@@ -94,11 +94,11 @@ public class AccountsController(IAccountsControllerService accountsControllerSer
|
||||
|
||||
#region Info
|
||||
|
||||
[HttpGet("{id}/info")]
|
||||
[HttpGet("{id}")]
|
||||
[AllowAnonymous]
|
||||
[ProducesResponseType(typeof(AccountResponse), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<ActionResult> GetAccountInfo([FromRoute]long id) => await accountsControllerService.GetAccountInfo(id);
|
||||
public async Task<ActionResult> GetAccount([FromRoute]long id) => await accountsControllerService.GetAccount(id);
|
||||
|
||||
[HttpPut("profile_info")]
|
||||
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
|
||||
|
||||
@@ -238,7 +238,7 @@ public class AccountsControllerService(
|
||||
|
||||
#region Info
|
||||
|
||||
public async Task<RequestResult> GetAccountInfo(long id)
|
||||
public async Task<RequestResult> GetAccount(long id)
|
||||
{
|
||||
Account? account = await database.Accounts.FirstOrDefaultAsync(x => x.Id == id);
|
||||
if (account is null)
|
||||
|
||||
@@ -19,7 +19,7 @@ public interface IAccountsControllerService
|
||||
Task<RequestResult> GetAccountProfileBackground(long id);
|
||||
Task<RequestResult> PutAccountProfileBackground(AccountProfileBackgroundRequest data);
|
||||
Task<RequestResult> DeleteAccountProfileBackground();
|
||||
Task<RequestResult> GetAccountInfo(long id);
|
||||
Task<RequestResult> GetAccount(long id);
|
||||
Task<RequestResult> PutAccountProfileInfo(AccountProfileInfoRequest data);
|
||||
Task<RequestResult> PatchAccountUsername(AccountUsernameRequest data);
|
||||
Task<RequestResult> PatchAccountEmail(AccountEmailRequest data);
|
||||
|
||||
Reference in New Issue
Block a user