mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-01 06:33:18 +02:00
feat(auth): add GET endpoint for logout and update documentation
This commit is contained in:
@@ -285,6 +285,26 @@
|
||||
}
|
||||
},
|
||||
"/auth/logout": {
|
||||
"get": {
|
||||
"description": "Logs out the user by invalidating the token",
|
||||
"produces": [
|
||||
"text/plain"
|
||||
],
|
||||
"tags": [
|
||||
"auth"
|
||||
],
|
||||
"summary": "Logout",
|
||||
"responses": {
|
||||
"302": {
|
||||
"description": "Redirects to home page",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-id": "logout",
|
||||
"operationId": "logout"
|
||||
},
|
||||
"post": {
|
||||
"description": "Logs out the user by invalidating the token",
|
||||
"produces": [
|
||||
|
||||
@@ -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