summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-07 09:32:46 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-07 09:32:46 -0800
commita20025b452934069fc6c39949d7b9e123a503c9c (patch)
tree871cb4c11c5dcb2ad1f870f88569fc3b51978201 /system/api/server.go
parentfee285453459ac33f53dc66052bffa7a83aca778 (diff)
testing cache control exec from CORS
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))))
}