更新用户控制器路由和My方法路由
This commit is contained in:
parent
7d3cae2d8d
commit
7ae98dedfb
@ -14,7 +14,7 @@ namespace AGSS.Controllers.User;
|
||||
/// </summary>
|
||||
/// <remarks>此控制器需要授权才能访问其方法。</remarks>
|
||||
[Authorize]
|
||||
[Route("api/v1/[controller]/[action]")]
|
||||
[Route("api/v1/[controller]")]
|
||||
public class UserControllers:ControllerBase
|
||||
{
|
||||
/// <summary>
|
||||
@ -37,7 +37,7 @@ public class UserControllers:ControllerBase
|
||||
/// 获取当前登录用户的个人信息。
|
||||
/// </summary>
|
||||
/// <returns>返回一个包含状态码、消息和用户信息的ReturnTemplate对象。如果成功,状态码为200;如果失败,状态码为500。</returns>
|
||||
[HttpGet]
|
||||
[HttpGet("my")]
|
||||
public async Task<IActionResult> My()
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user