diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-21 13:41:46 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-21 13:41:46 +0800 |
commit | 5e64e3385ae8eb9b877c032418da9e5086d50a06 (patch) | |
tree | 705580fda162d3a2667f288ddb8092e8fba09703 /Timeline/Controllers/TokenController.cs | |
parent | 38cef20cd509648d50e289cd4c7ec4a772031b12 (diff) | |
download | timeline-5e64e3385ae8eb9b877c032418da9e5086d50a06.tar.gz timeline-5e64e3385ae8eb9b877c032418da9e5086d50a06.tar.bz2 timeline-5e64e3385ae8eb9b877c032418da9e5086d50a06.zip |
...
Diffstat (limited to 'Timeline/Controllers/TokenController.cs')
-rw-r--r-- | Timeline/Controllers/TokenController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Controllers/TokenController.cs b/Timeline/Controllers/TokenController.cs index d708127a..cf32a562 100644 --- a/Timeline/Controllers/TokenController.cs +++ b/Timeline/Controllers/TokenController.cs @@ -56,7 +56,7 @@ namespace Timeline.Controllers [HttpPost("create")]
[AllowAnonymous]
- public async Task<IActionResult> Create([FromBody] CreateTokenRequest request)
+ public async Task<ActionResult<CreateTokenResponse>> Create([FromBody] CreateTokenRequest request)
{
void LogFailure(string reason, Exception? e = null)
{
@@ -102,7 +102,7 @@ namespace Timeline.Controllers [HttpPost("verify")]
[AllowAnonymous]
- public async Task<IActionResult> Verify([FromBody] VerifyTokenRequest request)
+ public async Task<ActionResult<VerifyTokenResponse>> Verify([FromBody] VerifyTokenRequest request)
{
void LogFailure(string reason, Exception? e = null, params (string, object?)[] otherProperties)
{
|