From 9fc7f1c3b0a2cbd3d34d6f8ae2ac08b661e9d2f5 Mon Sep 17 00:00:00 2001 From: YouWeiDH Date: Wed, 29 May 2024 10:50:41 +0800 Subject: [PATCH] hdong:change request method and API name. --- .../BotSharp.OpenAPI/Controllers/UserController.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs index 8228e594..e413724b 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs @@ -95,16 +95,14 @@ public class UserController : ControllerBase return UserViewModel.FromUser(user); } - [AllowAnonymous] - [HttpPost("/user/unique/{username}")] - public async Task VerifyUserUnique([FromRoute] string userName) + [HttpGet("/user/name/existing")] + public async Task VerifyUserUnique([FromQuery] string userName) { return await _userService.VerifyUserUnique(userName); } - [AllowAnonymous] - [HttpPost("/email/unique/{email}")] - public async Task VerifyEmailUnique([FromRoute]string email) + [HttpGet("/user/email/existing")] + public async Task VerifyEmailUnique([FromQuery] string email) { return await _userService.VerifyEmailUnique(email); }