Skip to content
Snippets Groups Projects
Commit 4f973801 authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Remove some logging

parent a45731a0
No related branches found
No related tags found
No related merge requests found
......@@ -92,13 +92,13 @@ const fileUpload = multer({
});
app.get("/api/preview/:roomUid", (req, res) => {
console.debug('[Debug] GET "/api/preview/:roomUid"');
// console.debug('[Debug] GET "/api/preview/:roomUid"');
const constructedPath = path.join(
__dirname,
"room_previews",
req.params.roomUid.split("/")[0].split("\\")[0] + ".jpeg"
);
console.debug('[Debug] constructed path:',constructedPath);
// console.debug('[Debug] constructed path:',constructedPath);
res.setHeader("Cache-Control", "max-age=2");
res.sendFile(constructedPath);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment