UNPKG

contentful-management

Version:
15 lines (12 loc) 475 B
import { getUploadHttpClient } from '../../../upload-http-client.js'; import { post } from './raw.js'; const getBaseUrl = (params) => { return `/spaces/${params.spaceId}/environments/${params.environmentId ?? 'master'}/upload_credentials`; }; const create = (http, params) => { const httpUpload = getUploadHttpClient(http); const path = getBaseUrl(params); return post(httpUpload, path); }; export { create }; //# sourceMappingURL=upload-credentials.js.map