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

@ -63,6 +63,8 @@ var allowedPluginRESTFiles = map[string]bool{
// bundled path (backend/internal/plugins/calcomblock/web/...). // 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/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/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) // Specific fetch paths that are non-proto REST endpoints (no ConnectRPC equivalent)