updates readme

This commit is contained in:
@wwwjim 2020-10-24 13:05:46 -07:00
parent 7169ebda8a
commit e7357e0299

View File

@ -29,12 +29,12 @@ Slate has a Developer API that allows you upload files using code and HTTP.
Every user who creates an account on Slate can use the API. Here is an example:
```js
const response = await fetch('https://slate.host/api/v1/get', {
method: 'POST',
const response = await fetch("https://slate.host/api/v1/get", {
method: "POST",
headers: {
'Content-Type': 'application/json',
Authorization: 'Basic XXX-YOUR-SLATE-KEY-XXX',
}
"Content-Type": "application/json",
Authorization: "Basic XXX-YOUR-SLATE-KEY-XXX",
},
});
```
@ -74,7 +74,7 @@ TEXTILE_HUB_KEY=XXX
TEXTILE_HUB_SECRET=XXX
RESOURCE_URI_UPLOAD=http://localhost:8888
RESOURCE_URI_STORAGE_UPLOAD=http://localhost:8888
RESOURCE_URI_REALTIME=http://localhost:8888
RESOURCE_URI_PUBSUB=http://localhost:5555
```
### Install and run