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

@@ -13,6 +13,7 @@ import (
// @Produce plain
// @Success 302 {string} string "Redirects to home page"
// @Router /auth/logout [post]
// @Router /auth/logout [get]
func Logout(c *gin.Context) {
auth.GetDefaultAuth().LogoutHandler(c.Writer, c.Request)
}