From 32d748655536389abdff0b71f98356df600bec4d Mon Sep 17 00:00:00 2001 From: PixelPikachu Date: Thu, 13 Dec 2018 19:44:57 +0000 Subject: [PATCH 1/2] Added docs tnt was lazy --- routes/api.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/routes/api.js b/routes/api.js index 0c308f1..f6b436f 100644 --- a/routes/api.js +++ b/routes/api.js @@ -243,7 +243,8 @@ app.get("/cry", async (req, res) => { * @api {get} /api/butterfly/ * @apiName butterfly * @apiGroup Image - * @apiParam {String} [Left for TNT, note to tnt: please do --Main] + * @apiParam {String} is this an api (text) + * @apiParam {String} bananapi.ml (textb) * @apiUse Error * @apiUse auth */ @@ -289,12 +290,12 @@ app.get("/butterfly", async (req, res) => { * @api {get} /api/board/ * @apiName board * @apiGroup Image - * @apiParam {String} [Left for TNT, note to tnt: please do --Main] + * @apiParam {String} Something to make the board say * @apiUse Error * @apiUse auth */ -app.get('/image/board', async function (req, res) { +app.get('/board', async function (req, res) { if (!req.query) {return res.status(204).send('Uh oh! You never provided a param! Missing: text')} if (!req.query.text) {return res.status(204).send('Uh oh! You never provided a param! Missing: text')} if (req.query.text.length > 80) {return res.status(414).send(`Max Characters`)} From a4ae1fee6cdd97f5c2eebee4d75a9acf112d3bbb Mon Sep 17 00:00:00 2001 From: PixelPikachu Date: Thu, 13 Dec 2018 19:47:29 +0000 Subject: [PATCH 2/2] Update api.js --- routes/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/api.js b/routes/api.js index f6b436f..0595003 100644 --- a/routes/api.js +++ b/routes/api.js @@ -243,8 +243,8 @@ app.get("/cry", async (req, res) => { * @api {get} /api/butterfly/ * @apiName butterfly * @apiGroup Image - * @apiParam {String} is this an api (text) - * @apiParam {String} bananapi.ml (textb) + * @apiParam {String} is this an api (text). Limit of 19 chars + * @apiParam {String} bananapi.ml (textb). Limit of 88 chars * @apiUse Error * @apiUse auth */ @@ -290,7 +290,7 @@ app.get("/butterfly", async (req, res) => { * @api {get} /api/board/ * @apiName board * @apiGroup Image - * @apiParam {String} Something to make the board say + * @apiParam {String} Something to make the board say. Limit of 80 chars * @apiUse Error * @apiUse auth */