diff --git a/lib/facts/blob-service.js b/lib/facts/blob-service.js index 35e89d3e9..191e3af2a 100644 --- a/lib/facts/blob-service.js +++ b/lib/facts/blob-service.js @@ -1,32 +1,34 @@ // @flow +type BlobServicePath = '/blob/:blobHash' | '/blob'; + export type BlobServiceHTTPEndpoint = { - +path: string, + +path: BlobServicePath, +method: 'GET' | 'POST' | 'PUT' | 'DELETE', }; const httpEndpoints = Object.freeze({ GET_BLOB: { path: '/blob/:blobHash', method: 'GET', }, ASSIGN_HOLDER: { path: '/blob', method: 'POST', }, UPLOAD_BLOB: { path: '/blob', method: 'PUT', }, DELETE_BLOB: { path: '/blob', method: 'DELETE', }, }); const config = { url: 'https://blob.commtechnologies.org', httpEndpoints, }; export default config;