mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 16:31:43 +02:00
feat(auth): add GET endpoint for logout and update documentation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user