From 8f41ba01509dfa436e154f8d7c106cffc10fe19a Mon Sep 17 00:00:00 2001 From: xRain Date: Sun, 30 May 2021 03:35:27 +0800 Subject: [PATCH] move common controller to api group --- Controllers/SimApiCommonController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Controllers/SimApiCommonController.cs b/Controllers/SimApiCommonController.cs index d1e5e9e..a716819 100644 --- a/Controllers/SimApiCommonController.cs +++ b/Controllers/SimApiCommonController.cs @@ -6,6 +6,7 @@ using SimApi.Helpers; namespace SimApi.Controllers { + [ApiExplorerSettings(GroupName = "api")] public class YYCommonController : SimApiBaseController { private SimApiAuth Auth { get; } @@ -37,7 +38,7 @@ namespace SimApi.Controllers public SimApiBaseResponse CheckLogin() { ErrorWhenNull(LoginInfo, 401); - return new SimApiBaseResponse { Data = LoginInfo.Id }; + return new SimApiBaseResponse {Data = LoginInfo.Id}; } /// @@ -53,8 +54,9 @@ namespace SimApi.Controllers { token = Request.Headers["Token"]; } + Auth.Logout(token); return new SimApiBaseResponse(); } } -} +} \ No newline at end of file