code refactor, added contact post route

This commit is contained in:
slawk0
2025-02-04 19:53:43 +01:00
parent cd83870ab4
commit ca2debca31
9 changed files with 319 additions and 52 deletions

View File

@@ -18,7 +18,7 @@ func Protected() fiber.Handler {
user := c.Locals("user").(*jwt.Token)
claims := user.Claims.(*model.UserClaims)
c.Locals("userId", claims.UserId)
c.Locals("userID", claims.UserID)
c.Locals("username", claims.Username)
return c.Next()
},