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

Add Gateway.APICommands for /api allowlists #10

Merged
2 commits merged into from
Sep 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
serialize/.ipfsconfig
1 change: 1 addition & 0 deletions 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 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