diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-16 10:56:48 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-16 10:56:48 -0800 |
commit | 957926591fd8fc2adacf04f410e5127dec259c85 (patch) | |
tree | 1ccc4e9aebfedcbec8199b9fa5d28414e6ec3ca2 /system/api | |
parent | cb4f6cd182bf538b2b7c297e56d6f7665607d19f (diff) |
clear up debug artifacts and add info to console messages
Diffstat (limited to 'system/api')
-rw-r--r-- | system/api/handlers.go | 2 | ||||
-rw-r--r-- | system/api/server.go | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go index 071a373..2473c24 100644 --- a/system/api/handlers.go +++ b/system/api/handlers.go @@ -231,7 +231,7 @@ func toJSON(data []string) ([]byte, error) { return buf.Bytes(), nil } -// sendData() should be used any time you want to communicate +// sendData should be used any time you want to communicate // data back to a foreign client func sendData(res http.ResponseWriter, data []byte, code int) { res, cors := responseWithCORS(res) diff --git a/system/api/server.go b/system/api/server.go index e2af125..4b8b22e 100644 --- a/system/api/server.go +++ b/system/api/server.go @@ -1,9 +1,6 @@ package api -import ( - "fmt" - "net/http" -) +import "net/http" // Run adds Handlers to default http listener for API func Run() { @@ -14,6 +11,4 @@ func Run() { http.HandleFunc("/api/content", Record(CORS(contentHandler))) http.HandleFunc("/api/content/external", Record(CORS(externalContentHandler))) - - fmt.Println("API routes registered.") } |