@cryptotaxi247 / kubo / commits / d7c1f5572

go-ipfs-config: Add Gateway.APICommands for /api allowlists

Lars Gierth committed Sep 15, 2018 at 21:22 UTC d7c1f55724a48c24372628096c0bf3300bb4f0fd
2 files changed +2
config/gateway.go
+1
@@ -6,4 +6,5 @@ type Gateway struct {
6 RootRedirect string
7 Writable bool
8 PathPrefixes []string
9 + APICommands []string
10 }
config/init.go
+1
@@ -66,6 +66,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
66 "Access-Control-Allow-Methods": []string{"GET"},
67 "Access-Control-Allow-Headers": []string{"X-Requested-With", "Range"},
68 },
69 + APICommands: []string{},
70 },
71 Reprovider: Reprovider{
72 Interval: "12h",