update:简化验证

This commit is contained in:
2021-03-03 16:53:55 +08:00
parent 8214973184
commit 5234d3358b
7 changed files with 27 additions and 18 deletions

View File

@@ -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);
}
}
}