summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-01 21:39:42 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-01 21:39:42 -0700
commit0f07efbf6ad59793c96fb1d7ffdd68ddff7bd7f4 (patch)
tree46889767ba216bd9cbbbc3d239dc7f88af22ebad /system/api/server.go
parent6ee469616d56b069dd68391577f0cd9411abc46a (diff)
adding analytics tracking to API calls
Diffstat (limited to 'system/api/server.go')
-rw-r--r--system/api/server.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/system/api/server.go b/system/api/server.go
index bfd8469..4468394 100644
--- a/system/api/server.go
+++ b/system/api/server.go
@@ -2,17 +2,15 @@ package api
import (
"net/http"
-
- a "github.com/bosssauce/ponzu/system/api/analytics"
)
// Run adds Handlers to default http listener for API
func Run() {
- http.HandleFunc("/api/types", CORS(a.Record(typesHandler)))
+ http.HandleFunc("/api/types", CORS(Record(typesHandler)))
- http.HandleFunc("/api/posts", CORS(a.Record(postsHandler)))
+ http.HandleFunc("/api/posts", CORS(Record(postsHandler)))
- http.HandleFunc("/api/post", CORS(a.Record(postHandler)))
+ http.HandleFunc("/api/post", CORS(Record(postHandler)))
- http.HandleFunc("/api/external/posts", CORS(a.Record(externalPostsHandler)))
+ http.HandleFunc("/api/external/posts", CORS(Record(externalPostsHandler)))
}