From 9b28e56e09ef31052935c00c830ceafd481b94f3 Mon Sep 17 00:00:00 2001 From: Pitu Date: Tue, 8 Jun 2021 00:33:01 +0900 Subject: chore: get host from req instead of config --- src/api/routes/search/searchGET.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/routes/search') diff --git a/src/api/routes/search/searchGET.js b/src/api/routes/search/searchGET.js index 187fcab..3cfcfef 100644 --- a/src/api/routes/search/searchGET.js +++ b/src/api/routes/search/searchGET.js @@ -53,7 +53,7 @@ class configGET extends Route { // For each file, create the public link to be able to display the file for (let file of files) { - file = Util.constructFilePublicLink(file); + file = Util.constructFilePublicLink(req, file); } return res.json({ -- cgit v1.2.3