package authRoutes import ( "enshi/global" "net/http" "github.com/gin-gonic/gin" ) func Logout(c *gin.Context) { c.SetCookie("auth_cookie", "", -1, "/", global.DomainForCookies, false, true) c.IndentedJSON(http.StatusOK, gin.H{"message": "you have been logged out"}) }