Add get endpoint for url via query param

This commit is contained in:
Bel LaPointe
2018-10-09 18:29:17 -06:00
parent d216949d91
commit 682f69746e
2 changed files with 45 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ func Test_Server(t *testing.T) {
for _, _ = range cases {
var err error
s, err := New(testPort, func(string, string, string, time.Duration) {})
s, err := New(testPort, func(string, string, string, time.Duration) {}, func(string, int) (string, error) { return "", nil })
if err != nil {
t.Errorf("failed to create server: %v", err)
}