summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-18 15:06:25 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-18 15:06:25 -0800
commite187d5ee6354acf40ac8178b0a8a631e80e35e8e (patch)
treef5bef4723710b6d79cef85974bafde149afb44e4 /system/api/handlers.go
parent7d87d40f8d0550331d1b19dea2c374ecfbc77d48 (diff)
moving item and types into system/item package and updating throughout codebase
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r--system/api/handlers.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go
index fae3ef6..1e2f1e2 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -8,14 +8,14 @@ import (
"strconv"
"strings"
- "github.com/bosssauce/ponzu/content"
"github.com/bosssauce/ponzu/system/api/analytics"
"github.com/bosssauce/ponzu/system/db"
+ "github.com/bosssauce/ponzu/system/item"
)
func typesHandler(res http.ResponseWriter, req *http.Request) {
var types = []string{}
- for t := range content.Types {
+ for t := range item.Types {
types = append(types, string(t))
}
@@ -36,7 +36,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
return
}
- if _, ok := content.Types[t]; !ok {
+ if _, ok := item.Types[t]; !ok {
res.WriteHeader(http.StatusNotFound)
return
}
@@ -98,7 +98,7 @@ func contentHandler(res http.ResponseWriter, req *http.Request) {
return
}
- if _, ok := content.Types[t]; !ok {
+ if _, ok := item.Types[t]; !ok {
res.WriteHeader(http.StatusNotFound)
return
}