Commit 64602940 authored by feruzm's avatar feruzm
Browse files

+missing packages and readme changes for hivesigner upload

parent 9654eabe
......@@ -2,7 +2,7 @@
imagehoster
===========
Steem-powered image hosting and proxying service.
Hive-powered image hosting and proxying service.
Developing
......@@ -55,7 +55,21 @@ Returns a JSON object containing the url to the uploaded image, example:
}
```
Requires a signature from a Steem account in good standing, see the "Signing uploads" section below for more information.
Requires a signature from a Hive account in good standing, see the "Signing uploads" section below for more information.
#### `POST /hs/<accesstoken>` - upload an image with Hivesigner accessToken.
Multipart image upload, will only consider first file if there are multiple.
Returns a JSON object containing the url to the uploaded image, example:
```json
{
"url": "https://images.example.com/DQmZi174Xz96UrRVBMNRHb6A2FfU3z1HRPwPPQCgSMgdiUT/test.jpg"
}
```
Requires a access token from a Hivesigner authorized account, for more info: https://hivesigner.com.
#### `GET /<image_hash>/[<filename>]` - fetch an uploaded image.
......@@ -138,7 +152,7 @@ Note that the avatars follow the same sizing rules as proxied images, so you are
Signing uploads
---------------
Uploads require a signature made with by a Steem account's posting authority, further that account has to be above a (service configurable) reputation threshold.
Uploads require a signature made with by a Hive account's posting authority, further that account has to be above a (service configurable) reputation threshold.
Creating a signature (psuedocode):
......
......@@ -9,12 +9,14 @@
"node": ">=8"
},
"dependencies": {
"@hiveio/dhive": "^0.14.0",
"@koa/cors": "^2.2.1",
"abstract-blob-store": "^3.3.4",
"aws-sdk": "^2.188.0",
"bunyan": "^2.0.2",
"busboy": "^0.2.14",
"config": "^1.29.4",
"hivesigner": "^3.2.0",
"koa": "^2.3.0",
"koa-router": "^7.4.0",
"mmmagic": "^0.5.0",
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment