mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Updated Design: Custom Node admin route handling (markdown)
parent
ee604c6c8d
commit
fddb8f03a6
@ -31,6 +31,14 @@ There are a number of ways a user may access these custom routes - each needs a
|
||||
|
||||
So we can cover a number of the cases via code inspection and url rewriting - but not all. I don't know how common it is for nodes to add custom images - but its possible, so needs to be handled.
|
||||
|
||||
#### Changes
|
||||
|
||||
- [ ] add parsing of the node's html content before initial adding to DOM to spot top level `script` and `link` tags and perform url rewriting.
|
||||
- [ ] add parsing of the node's edit template before adding to the DOM
|
||||
- [ ] update `$.ajaxSetup()` to rewrite relative URLs
|
||||
- [ ] provide a utility function, `RED.util.getAdminUrl`, that will do the url mapping. Nodes can then be updated to use this function where needed.
|
||||
- [ ] add `httpAdminCors` option (to mirror existing `httpNodeCors` option) to allow cross-domain access to the admin runtime api
|
||||
|
||||
### Runtime side
|
||||
|
||||
With the split, the server side splits into two separate modules:
|
||||
|
Loading…
Reference in New Issue
Block a user