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

Commit ef208a2

Browse files
author
Lars Gierth
committed
Add Gateway.APICommands for /api allowlists
1 parent b13380f commit ef208a2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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)