aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/TokenController.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-21 13:41:46 +0800
committer杨宇千 <crupest@outlook.com>2019-10-21 13:41:46 +0800
commitea8dd31e88aaf13af1f51e764623d6a7c73fb429 (patch)
tree705580fda162d3a2667f288ddb8092e8fba09703 /Timeline/Controllers/TokenController.cs
parent1ce632ad3c093bd60e4c75dd4229266604012729 (diff)
downloadtimeline-ea8dd31e88aaf13af1f51e764623d6a7c73fb429.tar.gz
timeline-ea8dd31e88aaf13af1f51e764623d6a7c73fb429.tar.bz2
timeline-ea8dd31e88aaf13af1f51e764623d6a7c73fb429.zip
...
Diffstat (limited to 'Timeline/Controllers/TokenController.cs')
-rw-r--r--Timeline/Controllers/TokenController.cs4
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)
{