Skip to content

Commit 4044dd8

Browse files
author
¨tedecti¨
committed
test
1 parent f0f3017 commit 4044dd8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Eclipse/Controllers/AuthController.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,12 @@ public async Task<ApiResponse<object>> Login(UserDto userDto)
3838
if (token == null) throw new NotFoundException("User");
3939
return new ApiResponse<object> { Message = "Success", Data = new { token } };
4040
}
41+
[HttpGet]
42+
[Route("penis")]
43+
public async Task<ApiResponse<object>> Penis(UserDto userDto)
44+
{
45+
var token = await _authRepository.Login(userDto);
46+
if (token == null) throw new NotFoundException("User");
47+
return new ApiResponse<object> { Message = "Success", Data = new { token } };
48+
}
4149
}

0 commit comments

Comments
 (0)