@cryptotaxi247 / kubo / commits / 0f1e5be1b

feat: expose dag/export on read-only gateway api

- add dag/export to read-only root. it's ready only, so why the heck not! - test that i didn't expose other dag subcommands § License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>

Oli Evans committed May 5, 2021 at 15:32 UTC 0f1e5be1be94656ffd3ffb26350e0aeca64644e4
2 files changed +3
core/commands/root.go
+1
@@ -194,6 +194,7 @@ var rootROSubcommands = map[string]*cmds.Command{
194 "get": dag.DagGetCmd,
195 "resolve": dag.DagResolveCmd,
196 "stat": dag.DagStatCmd,
197 + "export": dag.DagExportCmd,
198 },
199 },
200 "resolve": ResolveCmd,
test/sharness/t0110-gateway.sh
+2
@@ -199,6 +199,8 @@ for cmd in add \
199 block/put \
200 bootstrap \
201 config \
202 + dag/put \
203 + dag/import \
204 dht \
205 diag \
206 id \