增加了openapi
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
|
||||
package simcu::simapi.controllers
|
||||
|
||||
import soulsoft_web_mvc.annotations.*
|
||||
import simcu::simapi.communications.*
|
||||
import simcu::simapi.helpers.*
|
||||
|
||||
@@ -22,10 +21,8 @@ public class SimApiAuthController <: SimApiBaseController {
|
||||
|
||||
/**
|
||||
* POST /auth/logout:退出登录(void 自动封装为 SimApiBaseResponse())。
|
||||
* 对应路由 [HttpPost],
|
||||
* 由 MapControllerRoute(pattern=LogoutRoute) 注册。
|
||||
* 动态注册:路由路径由 SimApiRouteOptions.logoutRoute 决定(见 simapi_extensions.cj)。
|
||||
*/
|
||||
@HttpPost["/auth/logout"]
|
||||
public func logout(): Unit {
|
||||
if (let Some(token) <- request.headers.get("Token")) {
|
||||
_auth.logout(token)
|
||||
|
||||
Reference in New Issue
Block a user