Ryan aed0f28f13
Migrate to svelte for frontend (#9)
* Svelte: WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Finished

* Remove redundant code

* Fix typo

* Re-add routes

* Form margin

* Mobile nicities

* Mobile changed

* Increase keepalvie

* Update Guild.svelte

* Update Whitelabel.svelte

* Whitelabel changes
2021-06-30 15:40:55 +01:00

19 lines
345 B
Go

package root
import (
"github.com/TicketsBot/GoPanel/app/http/session"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
)
func LogoutHandler(ctx *gin.Context) {
userId := ctx.Keys["userid"].(uint64)
if err := session.Store.Clear(userId); err != nil {
ctx.JSON(500, utils.ErrorJson(err))
return
}
ctx.Status(204)
}