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

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 b13380f commit ef208a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit ef208a2

Please sign in to comment.