Files
pole-book/server/node_modules/@strapi/upload/dist/admin/utils/prefixFileUrlWithBackendUrl.js

9 lines
292 B
JavaScript

'use strict';
const prefixFileUrlWithBackendUrl = (fileURL)=>{
return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;
};
exports.prefixFileUrlWithBackendUrl = prefixFileUrlWithBackendUrl;
//# sourceMappingURL=prefixFileUrlWithBackendUrl.js.map