mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24: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")
|
const formidable = require("formidable")
|
||||||
|
|
||||||
function resolveToUrl(filepath, req) {
|
export function resolveToUrl(filepath, req) {
|
||||||
const host = req ? (req.protocol + "://" + req.get("host")) : global.globalPublicURI
|
const host = req ? (req.protocol + "://" + req.get("host")) : global.globalPublicURI
|
||||||
|
|
||||||
return `${host}/storage/${filepath}`
|
return `${host}/storage/${filepath}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user