From 2e85c75e96b9ca600467a60673c8177651b1483b Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 13 Feb 2021 22:15:15 +0800 Subject: refactor: Remove a deprecated api. --- BackEnd/Timeline/Controllers/UserController.cs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'BackEnd/Timeline') diff --git a/BackEnd/Timeline/Controllers/UserController.cs b/BackEnd/Timeline/Controllers/UserController.cs index 4091174c..b6eaf152 100644 --- a/BackEnd/Timeline/Controllers/UserController.cs +++ b/BackEnd/Timeline/Controllers/UserController.cs @@ -182,21 +182,6 @@ namespace Timeline.Controllers } } - /// - /// Create a new user. You have to be administrator. - /// - /// The new user's info. - [HttpPost("userop/createuser"), PermissionAuthorize(UserPermission.UserManagement)] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status400BadRequest)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status403Forbidden)] - [Obsolete("Use post instead.")] - public async Task> CreateUser([FromBody] HttpCreateUserRequest body) - { - return await Post(body); - } - /// /// Change password with old password. /// -- cgit v1.2.3