summaryrefslogtreecommitdiff
path: root/system/api
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-29 22:43:44 -0500
committerSteve Manuel <nilslice@gmail.com>2017-04-29 22:43:44 -0500
commit3c8c848606b996e2c7a06331401e622f888b84c5 (patch)
treea8c5b6ce9492d33d18bf2a66bc0ec13c9fffc538 /system/api
parenta48ed8dc7f7ddb3ddbc8ea54ad0b0d2feb7c87f0 (diff)
adding search, edit/new, and list view for uploads
Diffstat (limited to 'system/api')
-rw-r--r--system/api/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go
index b8b90df..0a9c177 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -210,7 +210,7 @@ func uploadsHandler(res http.ResponseWriter, req *http.Request) {
upload, err := db.UploadBySlug(slug)
if err != nil {
log.Println("Error finding upload by slug:", slug, err)
- res.WriteHeader(http.StatusInternalServerError)
+ res.WriteHeader(http.StatusNotFound)
return
}