diff --git a/routes/api.js b/routes/api.js index 0c308f1..0595003 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). Limit of 19 chars + * @apiParam {String} bananapi.ml (textb). Limit of 88 chars * @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. Limit of 80 chars * @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`)}