|
@@ -42,8 +42,10 @@ function extractFileId(referer) {
|
|
|
|
|
|
// middleware that is specific to this router
|
|
|
app.use(async function timeLog(req, res, next) {
|
|
|
+ console.log(45, req.url);
|
|
|
if (isValidReferer(req.url)) {
|
|
|
const fileId = extractFileId(req.url);
|
|
|
+ console.log(47, fileId);
|
|
|
if (fileId) {
|
|
|
return res.redirect(`/api/v1/files/${fileId}`);
|
|
|
} else {
|