summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
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)))
}