Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
Merge 6570829 into 26a7d9a
Browse files Browse the repository at this point in the history
  • Loading branch information
wusphinx committed Feb 23, 2019
2 parents 26a7d9a + 6570829 commit 6f1bcdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/router.js
Expand Up @@ -80,7 +80,7 @@ module.exports = function(app) {
});

rootRouter.get('/:report/:resource', function *(next) {
this.body = fs.readFileSync(path.join('.', 'reports', this.originalUrl));
this.body = fs.readFileSync(path.join(process.cwd(), 'reports', root.crawlingDateStamp, this.originalUrl));
this.type = 'image/png';
yield next;
});
Expand Down

0 comments on commit 6f1bcdd

Please sign in to comment.