diff --git a/config/.gitignore b/config/.gitignore new file mode 100644 index 000000000000..9a684b153987 --- /dev/null +++ b/config/.gitignore @@ -0,0 +1 @@ +serialize/.ipfsconfig diff --git a/config/gateway.go b/config/gateway.go index a8ba70590717..7e64b566fb4f 100644 --- a/config/gateway.go +++ b/config/gateway.go @@ -6,4 +6,5 @@ type Gateway struct { RootRedirect string Writable bool PathPrefixes []string + APICommands []string } diff --git a/config/init.go b/config/init.go index c4ea9e41bcd2..22aa699b8e35 100644 --- a/config/init.go +++ b/config/init.go @@ -66,6 +66,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) { "Access-Control-Allow-Methods": []string{"GET"}, "Access-Control-Allow-Headers": []string{"X-Requested-With", "Range"}, }, + APICommands: []string{}, }, Reprovider: Reprovider{ Interval: "12h",