Skip to content

Commit

Permalink
Merge pull request ipfs#10 from ipfs/feat/gateway-commands
Browse files Browse the repository at this point in the history
Add Gateway.APICommands for /api allowlists
  • Loading branch information
Lars Gierth authored Sep 24, 2018
2 parents 81afb5f + 7e3cda0 commit 94fe385
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
serialize/.ipfsconfig
1 change: 1 addition & 0 deletions config/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ type Gateway struct {
RootRedirect string
Writable bool
PathPrefixes []string
APICommands []string
}
1 change: 1 addition & 0 deletions config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 94fe385

Please sign in to comment.