diff --git a/users.go b/users.go index 0c594c3..cafa480 100644 --- a/users.go +++ b/users.go @@ -38,6 +38,10 @@ func declareAPIAdminUsersRoutes(router *gin.RouterGroup) { c.JSON(http.StatusOK, promos) }) + router.GET("/session", func(c *gin.Context) { + c.JSON(http.StatusOK, c.MustGet("Session").(*Session)) + }) + router.GET("/users", func(c *gin.Context) { users, err := getUsers() if err != nil {