UNPKG

contentful-management

Version:
15 lines (12 loc) 478 B
import { getUploadHttpClient } from '../../../upload-http-client.mjs'; import { post } from './raw.mjs'; 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.mjs.map