This commit is contained in:
Tomas Dvorak
2026-01-26 08:13:18 +01:00
parent aa036b6550
commit dfc079288f
505 changed files with 95755 additions and 5712 deletions
@@ -45,6 +45,10 @@ func ValidateContentType() gin.HandlerFunc {
c.Next()
return
}
if strings.Contains(path, "/admin/manual/matches/import") || strings.Contains(path, "/admin/manual/tables/import") {
c.Next()
return
}
// Allow scoreboard timer control endpoints without requiring JSON body
// These actions do not read request body and are triggered via simple POSTs from remote UI
@@ -57,6 +61,11 @@ func ValidateContentType() gin.HandlerFunc {
return
}
if strings.Contains(path, "/admin/prefetch/trigger") {
c.Next()
return
}
if strings.Contains(path, "/rembg/start") {
c.Next()
return