From 6a58912c3e4246e4f3ade9c2caeeaffbb5b3ea39 Mon Sep 17 00:00:00 2001 From: Alberto Ivo Vieira Date: Thu, 30 Nov 2017 10:02:58 -0200 Subject: [PATCH] Update server.js Add the PARAM option for voting on a comment --- api-server/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api-server/server.js b/api-server/server.js index 68cf08c226..130b0ccf4a 100644 --- a/api-server/server.js +++ b/api-server/server.js @@ -94,6 +94,8 @@ app.get('/', (req, res) => { POST /comments/:id USAGE: Used for voting on a comment. + PARAMS: + option - String: Either "upVote" or "downVote" PUT /comments/:id USAGE: