diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a684b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +serialize/.ipfsconfig diff --git a/gateway.go b/gateway.go index a8ba705..7e64b56 100644 --- a/gateway.go +++ b/gateway.go @@ -6,4 +6,5 @@ type Gateway struct { RootRedirect string Writable bool PathPrefixes []string + APICommands []string } diff --git a/init.go b/init.go index c4ea9e4..22aa699 100644 --- a/init.go +++ b/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",