diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-18 15:06:25 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-18 15:06:25 -0800 |
commit | e187d5ee6354acf40ac8178b0a8a631e80e35e8e (patch) | |
tree | f5bef4723710b6d79cef85974bafde149afb44e4 /system/api/handlers.go | |
parent | 7d87d40f8d0550331d1b19dea2c374ecfbc77d48 (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.go | 8 |
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 } |