summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-13 15:48:38 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-13 15:48:38 -0800
commit317dcbdda41cafbd5a330602b38b9a52fab5ec6f (patch)
tree23be361cc3d69a33d2aa88bf49c6586ff44b7afa /system/api/server.go
parentaf31558e3d90b887758d9266c5ba80f0d9eaf3dc (diff)
adding test in CORS middleware in fix for start
Diffstat (limited to 'system/api/server.go')
-rw-r--r--system/api/server.go7
1 files changed, 6 insertions, 1 deletions
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.")
}