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/external.go | |
parent | 7d87d40f8d0550331d1b19dea2c374ecfbc77d48 (diff) |
moving item and types into system/item package and updating throughout codebase
Diffstat (limited to 'system/api/external.go')
-rw-r--r-- | system/api/external.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/api/external.go b/system/api/external.go index 0d1ea03..8112e29 100644 --- a/system/api/external.go +++ b/system/api/external.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/bosssauce/ponzu/content" "github.com/bosssauce/ponzu/system/admin/upload" "github.com/bosssauce/ponzu/system/db" + "github.com/bosssauce/ponzu/system/item" ) // Externalable accepts or rejects external POST requests to endpoints such as: @@ -44,7 +44,7 @@ func externalContentHandler(res http.ResponseWriter, req *http.Request) { return } - p, found := content.Types[t] + p, found := item.Types[t] if !found { log.Println("[External] attempt to submit unknown type:", t, "from:", req.RemoteAddr) res.WriteHeader(http.StatusNotFound) @@ -105,9 +105,9 @@ func externalContentHandler(res http.ResponseWriter, req *http.Request) { return } - hook, ok := post.(content.Hookable) + hook, ok := post.(item.Hookable) if !ok { - log.Println("[External] error: Type", t, "does not implement content.Hookable or embed content.Item.") + log.Println("[External] error: Type", t, "does not implement item.Hookable or embed item.Item.") res.WriteHeader(http.StatusBadRequest) return } |