From 7a22c681079d5b0e2bcbb9436abbed05de0aee7f Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Mon, 13 Jun 2016 18:53:18 +0200 Subject: [PATCH] Use send [skip ci] --- Documentation/Books/Manual/Foxx/GettingStarted.mdpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/Books/Manual/Foxx/GettingStarted.mdpp b/Documentation/Books/Manual/Foxx/GettingStarted.mdpp index a7b597e34d..25dc13acbc 100644 --- a/Documentation/Books/Manual/Foxx/GettingStarted.mdpp +++ b/Documentation/Books/Manual/Foxx/GettingStarted.mdpp @@ -209,7 +209,7 @@ const DOC_NOT_FOUND = errors.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code; router.post('/entries', function (req, res) { const data = req.body; const meta = foxxColl.save(req.body); - res.json(Object.assign(data, meta)); + res.send(Object.assign(data, meta)); }) .body(joi.object().required(), 'Entry to store in the collection.') .response(joi.object().required(), 'Entry stored in the collection.') @@ -219,7 +219,7 @@ router.post('/entries', function (req, res) { router.get('/entries/:key', function (req, res) { try { const data = foxxColl.document(req.pathParams.key); - res.json(data) + res.send(data) } catch (e) { if (!e.isArangoError || e.errorNum !== DOC_NOT_FOUND) { throw e; @@ -258,7 +258,7 @@ router.get('/entries', function (req, res) { FOR entry IN ${foxxColl} RETURN entry._key `); - res.json(keys) + res.send(keys); }) .response(joi.array().items( joi.string().required()