update:简化验证
This commit is contained in:
@@ -52,7 +52,7 @@ namespace QRCodeService.Controllers.Api
|
||||
}
|
||||
}
|
||||
|
||||
[CheckSign(typeof(CreateLinkModel))]
|
||||
[CheckSign]
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> Create(CreateLinkModel input)
|
||||
{
|
||||
@@ -62,7 +62,7 @@ namespace QRCodeService.Controllers.Api
|
||||
{
|
||||
return BadRequest();
|
||||
}
|
||||
return Ok(link.ShortCode);
|
||||
return Created($"{option.Value.BaseUrl}r/{link.ShortCode}",link.ShortCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user