export resolveToUrl

This commit is contained in:
srgooglo 2022-06-06 23:32:47 +02:00
parent d4812d44cc
commit 1b9e005b6d

View File

@ -6,7 +6,7 @@ import pmap from "../../utils/pMap"
const formidable = require("formidable")
function resolveToUrl(filepath, req) {
export function resolveToUrl(filepath, req) {
const host = req ? (req.protocol + "://" + req.get("host")) : global.globalPublicURI
return `${host}/storage/${filepath}`