Browse Source

打开图片失败

john 8 tháng trước cách đây
mục cha
commit
07e618a3ed
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      node_expores/app.js

+ 2 - 0
node_expores/app.js

@@ -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 {