25 lines
590 B
Go
25 lines
590 B
Go
package user
|
|
|
|
import (
|
|
"janex/admin-dashboard-backend/modules/structs"
|
|
"janex/admin-dashboard-backend/modules/utils"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
"github.com/rs/zerolog/log"
|
|
)
|
|
|
|
func SignOutSession(c *fiber.Ctx) error {
|
|
var params structs.UserSignOutSessionRequest
|
|
|
|
if err := c.ParamsParser(¶ms); err != nil {
|
|
log.Error().Msg("Failed to parse params, err: " + err.Error())
|
|
return c.SendStatus(fiber.StatusBadRequest)
|
|
}
|
|
|
|
log.Debug().Msgf("params %s", params.SessionId)
|
|
|
|
log.Debug().Msgf("userId %s", utils.GetXAuhorizationHeader(c))
|
|
|
|
return c.SendStatus(fiber.StatusOK)
|
|
}
|