feat: allow judgefestblock web REST fetches (HTTPHandler plugin, calcomblock precedent)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-07-12 14:21:54 +08:00
parent 9a0099a95a
commit f69e824f78

View File

@ -61,8 +61,10 @@ var allowedPluginRESTFiles = map[string]bool{
// Suffix-matched (see pluginRESTFileAllowed), so these cover calcomblock both
// as the standalone plugin repo (plugins/calcomblock/web/...) and the legacy
// bundled path (backend/internal/plugins/calcomblock/web/...).
"plugins/calcomblock/web/settings.tsx": true, // Plugin settings/test endpoints are mounted via HTTPHandler; no generated hooks exist yet
"plugins/calcomblock/web/editor.tsx": true, // Block editor reads plugin /settings + /event-types via HTTPHandler routes
"plugins/calcomblock/web/settings.tsx": true, // Plugin settings/test endpoints are mounted via HTTPHandler; no generated hooks exist yet
"plugins/calcomblock/web/editor.tsx": true, // Block editor reads plugin /settings + /event-types via HTTPHandler routes
"plugins/judgefestblock/web/settings.tsx": true, // Same HTTPHandler REST shape as calcomblock (settings/test endpoints)
"plugins/judgefestblock/web/editor.tsx": true, // Block editor reads plugin /events-picker via HTTPHandler routes
}
// Specific fetch paths that are non-proto REST endpoints (no ConnectRPC equivalent)