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