summaryrefslogtreecommitdiff
path: root/srv/src/api/assets.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/api/assets.go')
-rw-r--r--srv/src/api/assets.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/srv/src/api/assets.go b/srv/src/api/assets.go
index c1cd75e..47be14c 100644
--- a/srv/src/api/assets.go
+++ b/srv/src/api/assets.go
@@ -149,7 +149,7 @@ func (a *api) postPostAssetHandler() http.Handler {
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
id := r.PostFormValue("id")
- if id == "" {
+ if id == "/" {
apiutil.BadRequest(rw, r, errors.New("id is required"))
return
}
@@ -176,7 +176,7 @@ func (a *api) deletePostAssetHandler() http.Handler {
id := filepath.Base(r.URL.Path)
- if id == "" {
+ if id == "/" {
apiutil.BadRequest(rw, r, errors.New("id is required"))
return
}