diff --git a/lib/smms.js b/lib/smms.js index 32ac59e..85cbdff 100644 --- a/lib/smms.js +++ b/lib/smms.js @@ -4,7 +4,7 @@ const version = require('../package.json').version module.exports = { - VERSION: version + VERSION: version, api: { upload: 'https://sm.ms/api/upload', @@ -49,7 +49,7 @@ module.exports = { delete(hash) { return request.get({ - url: this.api.delete, + url: this.api.delete + hash, headers: this.headers, qs: { format: 'json' diff --git a/package.json b/package.json index a55332c..e7f2a37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smms-cli", - "version": "0.1.0", + "version": "0.1.1", "description": "Upload images to sm.ms", "main": "lib/smms.js", "repository": "https://github.com/metowolf/smms-cli.git",