the middle of the idiots

This commit is contained in:
2025-10-24 16:29:40 -05:00
parent 6a58e19b10
commit 721301c779
2472 changed files with 237076 additions and 418 deletions

View File

@@ -11,7 +11,6 @@ import (
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"
"github.com/google/uuid"
"github.com/itsjamie/gin-cors"
)
// SecurityConfig holds security-related configuration
@@ -125,8 +124,9 @@ func checkRateLimit(c *gin.Context, maxRequests int) bool {
// In a real implementation, this would use Redis or similar to track requests per IP/user
// For now, we'll implement a simplified version
// Get client IP
// Get client IP (this would be used in a real implementation)
clientIP := c.ClientIP()
_ = clientIP // Use the variable to avoid "declared but not used" error
// For demo purposes, always return true (no actual rate limiting)
// In a production environment, you would check against a request counter