discord embed changes

This commit is contained in:
Sotirios Pupakis
2025-09-07 05:13:06 +02:00
parent 557eedf02f
commit 64d9f51f19
7 changed files with 58 additions and 53 deletions

View File

@@ -15,3 +15,12 @@ func CheckAllowed(c *gin.Context) {
return
}
}
func CheckAdmin(c *gin.Context) {
adminSecret := c.GetHeader("X-ADMIN-KEY")
if adminSecret != initializers.ADMIN_SECRET {
c.JSON(http.StatusForbidden, gin.H{"error": "Forbidden"})
c.Abort()
return
}
}