From e1aded8b57736a0532804693c8cafcdb0c497a7f Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 13 Apr 2018 12:06:02 +0200 Subject: Integration of the bundle editor --- app.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 2e7c8d0..a59723c 100644 --- a/app.js +++ b/app.js @@ -102,7 +102,15 @@ app.get('/', (req, res) => { res.send(data); }); }); - +app.get('/edit', (req, res) => { + console.log(`[${new Date()}] > ${200} - ${req.url}`); + fs.readFile('public/edit.html', 'utf8', (err, data) => { + if (err) { + return console.log(err); + } + res.send(data); + }); +}); app.get('*', (req, res) => { console.error(`[${new Date()}] > ${404} - ${req.url}`); fs.readFile('public/404.md', 'utf8', (err, data) => { -- cgit v1.2.3