UPDATE: logout
All checks were successful
Build and Release / release (push) Successful in 1m1s

This commit is contained in:
2026-04-07 18:01:39 +07:00
parent a1d7f2b9ee
commit 5d9db1b150
4 changed files with 107 additions and 0 deletions

View File

@@ -132,6 +132,43 @@ const docTemplate = `{
}
}
},
"/auth/logout": {
"post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Logout current user and revoke tokens",
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Logout user",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
}
}
}
},
"/auth/refresh": {
"post": {
"security": [