Ensure profile created maintenance method

This commit is contained in:
2025-05-22 01:31:36 +08:00
parent b0a616c17c
commit 2399bf0309
2 changed files with 25 additions and 0 deletions

View File

@ -428,4 +428,13 @@ public class AccountController(
.Take(take)
.ToListAsync();
}
[HttpPost("/maintenance/ensureProfileCreated")]
[Authorize]
[RequiredPermission("maintenance", "accounts.profiles")]
public async Task<ActionResult> EnsureProfileCreated()
{
await accounts.EnsureAccountProfileCreated();
return Ok();
}
}