Auth Options

This commit is contained in:
Ben Toogood
2020-05-11 11:47:59 +01:00
parent 22de001a80
commit 506006f0fa
7 changed files with 699 additions and 150 deletions

View File

@@ -54,7 +54,7 @@ func NewTestEndpoints() []*api.Endpoint {
},
&api.Endpoint{
Name: "Test.CallPcreInvalid",
Path: []string{"/api/v0/test/call/pcre/invalid/?"},
Path: []string{"^/api/v0/test/call/pcre/invalid/?"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
@@ -146,7 +146,7 @@ func RegisterTestHandler(s server.Server, hdlr TestHandler, opts ...server.Handl
}))
opts = append(opts, api.WithEndpoint(&api.Endpoint{
Name: "Test.CallPcreInvalid",
Path: []string{"/api/v0/test/call/pcre/invalid/?"},
Path: []string{"^/api/v0/test/call/pcre/invalid/?"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",