|
|
@ -155,7 +155,7 @@ func (a *api) postPostAssetHandler() http.Handler { |
|
|
|
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { |
|
|
|
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { |
|
|
|
|
|
|
|
|
|
|
|
id := r.PostFormValue("id") |
|
|
|
id := r.PostFormValue("id") |
|
|
|
if id == "/" { |
|
|
|
if id == "" { |
|
|
|
apiutil.BadRequest(rw, r, errors.New("id is required")) |
|
|
|
apiutil.BadRequest(rw, r, errors.New("id is required")) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|