Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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`)}
Expand Down