From 792f61d55ee6e9c251af5ac681621975ad4a9309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 14 Nov 2018 16:45:05 +0100 Subject: [PATCH] formatting --- src/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.js b/src/app.js index 89d58c9..96d4348 100644 --- a/src/app.js +++ b/src/app.js @@ -21,16 +21,16 @@ app.on('error', (err, ctx) => { }); router.put('/clicks/:id', async ctx => { - counter.incr(ctx.params.id) - ctx.body = { [ctx.params.id]: await counter.state(ctx.params.id) } + counter.incr(ctx.params.id) + ctx.body = { [ctx.params.id]: await counter.state(ctx.params.id) } }); router.get('/clicks', async ctx => { - ctx.body = await counter.list() + ctx.body = await counter.list() }); router.get('/clicks/:id', async ctx => { - ctx.body = { [ctx.params.id]: await counter.state(ctx.params.id) } + ctx.body = { [ctx.params.id]: await counter.state(ctx.params.id) } }); app.use(Logger())