Skip to content

Commit

Permalink
Add Gateway.APICommands for /api allowlists
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Gierth committed Sep 24, 2018
1 parent 67c2404 commit 7e3cda0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 7e3cda0

Please sign in to comment.