Changeset View
Changeset View
Standalone View
Standalone View
lib/facts/blob-service.js
- This file was added.
// @flow | |||||
export type BlobServiceHTTPEndpoint = { | |||||
+path: string, | |||||
+method: 'GET' | 'POST' | 'PUT' | 'DELETE', | |||||
}; | |||||
const httpEndpoints = Object.freeze({ | |||||
GET_BLOB: { | |||||
path: '/blob/:holder', | |||||
method: 'GET', | |||||
}, | |||||
ASSIGN_HOLDER: { | |||||
path: '/blob', | |||||
method: 'POST', | |||||
}, | |||||
UPLOAD_BLOB: { | |||||
path: '/blob', | |||||
method: 'PUT', | |||||
}, | |||||
DELETE_BLOB: { | |||||
path: '/blob/:holder', | |||||
method: 'DELETE', | |||||
}, | |||||
}); | |||||
const config = { | |||||
url: 'https://blob.commtechnologies.org', | |||||
httpEndpoints, | |||||
}; | |||||
export default config; |