From 503de3b5a624ee456405c3aea576a4a9f3eab4c3 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 11 Nov 2014 02:58:56 +0000 Subject: [PATCH] Send back report ID, fixes #5 Also helps atom/atom-shell#809 --- src/app.coffee | 1 + views/index.jade | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.coffee b/src/app.coffee index 8db4e99..05a2b0d 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -34,6 +34,7 @@ app.post '/post', (req, res, next) -> return next err if err? console.log 'saved', filename + res.send path.basename(filename) res.end() root = diff --git a/views/index.jade b/views/index.jade index 08af0f9..f16a230 100644 --- a/views/index.jade +++ b/views/index.jade @@ -6,4 +6,4 @@ block content each record in records li a(href='view/' + record.id) - = 'v' + record.version + ' ' + record.time.toString() + = 'v' + record.version + ' ' + record.time.toLocaleString()