summaryrefslogtreecommitdiff
path: root/system/api/external.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-29 17:56:46 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-29 17:56:46 -0700
commitc930db63601095ce386413b3eb764b71ee71fe2c (patch)
tree0142977cd022caa62ca487010f0e51a3dd2272de /system/api/external.go
parented4c47babef56f18df0a5b393b0c0fe79e659105 (diff)
renaming and moving File upload logic into own package
Diffstat (limited to 'system/api/external.go')
-rw-r--r--system/api/external.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/api/external.go b/system/api/external.go
index 1c69afb..52240d5 100644
--- a/system/api/external.go
+++ b/system/api/external.go
@@ -8,7 +8,7 @@ import (
"time"
"github.com/bosssauce/ponzu/content"
- "github.com/bosssauce/ponzu/system/admin"
+ "github.com/bosssauce/ponzu/system/admin/upload"
"github.com/bosssauce/ponzu/system/db"
)
@@ -68,7 +68,7 @@ func externalPostsHandler(res http.ResponseWriter, req *http.Request) {
req.PostForm.Set("updated", ts)
req.PostForm.Set("id", ts)
- urlPaths, err := admin.storeFileUploads(req)
+ urlPaths, err := upload.StoreFiles(req)
if err != nil {
log.Println(err)
res.WriteHeader(http.StatusInternalServerError)