From 317dcbdda41cafbd5a330602b38b9a52fab5ec6f Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 13 Jan 2017 15:48:38 -0800 Subject: adding test in CORS middleware in fix for start --- system/api/server.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'system/api/server.go') diff --git a/system/api/server.go b/system/api/server.go index 4b8b22e..e2af125 100644 --- a/system/api/server.go +++ b/system/api/server.go @@ -1,6 +1,9 @@ package api -import "net/http" +import ( + "fmt" + "net/http" +) // Run adds Handlers to default http listener for API func Run() { @@ -11,4 +14,6 @@ func Run() { http.HandleFunc("/api/content", Record(CORS(contentHandler))) http.HandleFunc("/api/content/external", Record(CORS(externalContentHandler))) + + fmt.Println("API routes registered.") } -- cgit v1.2.3