From cb434292bfcaf798c00fe33e2c04b6adc07bcc6a Mon Sep 17 00:00:00 2001 From: Petros Angelatos Date: Sun, 21 Jul 2013 02:31:54 +0100 Subject: [PATCH] Implemented the update repo endpoint --- app.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.coffee b/app.coffee index 8beef4c9..c4a29b93 100644 --- a/app.coffee +++ b/app.coffee @@ -70,8 +70,12 @@ app.post('/blink', (req, res) -> ) app.post('/update', (req, res) -> - - + hakiApp.update((error) -> + if error + res.send(500) + else + res.send(204) + ) ) app.listen(80)