Add exports to make router usable as a library

This commit is contained in:
Soam Vasani
2016-10-29 20:40:41 -07:00
parent 83c995e019
commit fbd76149f5
3 changed files with 8 additions and 30 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func TestRouter(t *testing.T) {
triggers.triggers = append(triggers.triggers, fission.HTTPTrigger{UrlPattern: triggerUrl, Function: *fn})
port := 4242
go server(port, triggers)
go serve(port, triggers)
time.Sleep(100 * time.Millisecond)
testUrl := fmt.Sprintf("http://localhost:%v%v", port, triggerUrl)