@intuitionrobotics/file-upload
Version:
File Uploader - Express & Typescript based backend framework
14 lines • 641 B
JavaScript
import { ApiResponse, HttpMethod, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
import {} from "../../../../shared/types.js";
import {} from "@intuitionrobotics/thunderstorm";
import { UploaderModule } from "../../../modules/UploaderModule.js";
class ServerApi_GetUploadUrlWithBucketName extends ServerApi {
constructor() {
super(HttpMethod.POST);
}
async process(request, response, queryParams, body) {
return UploaderModule.getUrl(body.files, body.pathPrefix, body.bucketName);
}
}
export default new ServerApi_GetUploadUrlWithBucketName();
//# sourceMappingURL=get-url-with-bucket-name.js.map