diff --git a/controller/files.go b/controller/files.go index 0e7afbf..2c4251a 100644 --- a/controller/files.go +++ b/controller/files.go @@ -38,11 +38,9 @@ func (f *FilesController) PostUpload() { _ = ctx.JSON(&UploadResponse{Cid: cidString}) } -func (f *FilesController) GetDownload() { +func (f *FilesController) GetDownloadBy(cidString string) { ctx := f.Ctx - cidString := ctx.URLParam("cid") - _, err := cid.Valid(cidString) if sendError(ctx, err, iris.StatusBadRequest) { return