mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
export resolveToUrl
This commit is contained in:
parent
d4812d44cc
commit
1b9e005b6d
@ -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}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user