Hi folks,
The config screen of my node-red-contrib-blockly node needs to load a series of Javascript library files from the server. This is implemented by using a http endpoint:
RED.httpAdmin.get('/blocky/js/*', function(req, res){
...
}
I have always thought this was the correct way of working, since you can find following explanation in the Node-RED cookbook:
Sometimes a custom node needs to be able to look up additional data at configuration time (e.g. when editing the configuration of a node instance in the admin interface).
The approved way to do this is for the node to register an extra http endpoint to use as an API.
However today an issue is raised for my blockly node:
Node doesn't show the blockly editor control when custom httpAdminRoot in use.
I have never used the httpAdminRoot setting, but seems that it allows you to disable all admin endpoints (both API endpoints and the editor UI). So I assume that my endpoint is disabled => no .js files are loaded => the blockly editor is not displayed...
Does anybody have a clue how I can solve this?
Thanks !!!
Bart