fix(api): legacy graphviz path broke on trailing slash
@@ -280,6 +280,8 @@ class RunNode:
p2p_resource = Resource()
root.putChild(b'p2p', p2p_resource)
graphviz = GraphvizLegacyResource(self.manager)
+ # XXX: reach the resource through /graphviz/ too, previously it was a leaf so this wasn't a problem
+ graphviz.putChild(b'', graphviz)
for fmt in ['dot', 'pdf', 'png', 'jpg']:
bfmt = fmt.encode('ascii')
graphviz.putChild(b'full.' + bfmt, GraphvizFullResource(self.manager, format=fmt))
