diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/readfile.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/readfile.js b/source/readfile.js index def56a1..3cf0a7a 100644 --- a/source/readfile.js +++ b/source/readfile.js @@ -90,6 +90,9 @@ class ReadFile { return streamToPromise(Readable.from(object.links).pipe(object.stream)).then(data => {return data.toString()}) } + NotFound() { + return fs.readFileSync('./views/layouts/404.html', 'utf-8') + } GetFile(x) { const path = x.split('/') const object = { |
