ADD: added new auth middleware and changed the roles value ind the jwt token to a array
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func GetPlayers(c *gin.Context, db *sql.DB) {
|
||||
// log.Println(c.)
|
||||
log.Println(c.GetString("userId"), c.GetString("email"), c.GetString("role"))
|
||||
// Simulate fetching players from a database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user