think/packages/domains/lib/api/file.js

39 lines
898 B
TypeScript
Raw Permalink Normal View History

2022-05-23 05:05:59 +00:00
"use strict";
exports.__esModule = true;
2022-06-04 09:01:33 +00:00
exports.FILE_CHUNK_SIZE = exports.FileApiDefinition = void 0;
2022-05-23 05:05:59 +00:00
exports.FileApiDefinition = {
/**
*
*/
upload: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'upload',
client: function () { return '/file/upload'; }
2022-06-04 09:01:33 +00:00
},
2022-06-04 19:14:47 +00:00
/**
*
2022-06-04 19:14:47 +00:00
*/
initChunk: {
method: 'post',
server: 'upload/initChunk',
client: function () { return '/file/upload/initChunk'; }
},
2022-06-04 09:01:33 +00:00
/**
*
*/
uploadChunk: {
method: 'post',
server: 'upload/chunk',
client: function () { return '/file/upload/chunk'; }
},
/**
*
*/
mergeChunk: {
method: 'post',
server: 'merge/chunk',
client: function () { return '/file/merge/chunk'; }
2022-05-23 05:05:59 +00:00
}
};
2022-06-04 09:01:33 +00:00
exports.FILE_CHUNK_SIZE = 2 * 1024 * 1024;