소스 검색

打开图片失败

john 8 달 전
부모
커밋
07e618a3ed
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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 {