Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit de53f68

Browse files
author
Lars Gierth
authored
Merge pull request #10 from ipfs/feat/gateway-commands
Add Gateway.APICommands for /api allowlists
2 parents 2c7641a + ef208a2 commit de53f68

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
serialize/.ipfsconfig

gateway.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ type Gateway struct {
66
RootRedirect string
77
Writable bool
88
PathPrefixes []string
9+
APICommands []string
910
}

init.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
6666
"Access-Control-Allow-Methods": []string{"GET"},
6767
"Access-Control-Allow-Headers": []string{"X-Requested-With", "Range"},
6868
},
69+
APICommands: []string{},
6970
},
7071
Reprovider: Reprovider{
7172
Interval: "12h",

0 commit comments

Comments
 (0)