feat(auth): add GET endpoint for logout and update documentation

This commit is contained in:
yusing
2025-09-14 13:07:24 +08:00
parent 93e1d17090
commit 2a08c55e39
4 changed files with 35 additions and 0 deletions

View File

@@ -1613,6 +1613,19 @@ paths:
- auth
x-id: login
/auth/logout:
get:
description: Logs out the user by invalidating the token
produces:
- text/plain
responses:
"302":
description: Redirects to home page
schema:
type: string
summary: Logout
tags:
- auth
x-id: logout
post:
description: Logs out the user by invalidating the token
produces: