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.go14
1 files changed, 5 insertions, 9 deletions
diff --git a/system/api/server.go b/system/api/server.go
index 703a906..f8c9ba9 100644
--- a/system/api/server.go
+++ b/system/api/server.go
@@ -1,18 +1,14 @@
package api
-import (
- "net/http"
-
- "github.com/bosssauce/ponzu/system/db"
-)
+import "net/http"
// Run adds Handlers to default http listener for API
func Run() {
- http.HandleFunc("/api/types", Record(db.CacheControl(CORS(typesHandler))))
+ http.HandleFunc("/api/types", Record((CORS(typesHandler))))
- http.HandleFunc("/api/contents", Record(db.CacheControl(CORS(contentsHandler))))
+ http.HandleFunc("/api/contents", Record((CORS(contentsHandler))))
- http.HandleFunc("/api/content", Record(db.CacheControl(CORS(contentHandler))))
+ http.HandleFunc("/api/content", Record((CORS(contentHandler))))
- http.HandleFunc("/api/content/external", Record(db.CacheControl(CORS(externalContentHandler))))
+ http.HandleFunc("/api/content/external", Record((CORS(externalContentHandler))))
}