From 839c34a3109dbd84663727a117cc9849d0e42815 Mon Sep 17 00:00:00 2001 From: ale Date: Fri, 15 Nov 2024 20:05:01 +0100 Subject: [PATCH] refactor blockcount --- lib/apiswagger.js | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/lib/apiswagger.js b/lib/apiswagger.js index 673d850..8380c30 100644 --- a/lib/apiswagger.js +++ b/lib/apiswagger.js @@ -439,25 +439,18 @@ module.exports = (app, client) => { * type: object * properties: * data: - * type: object - * properties: - * block_count: - * type: integer - * description: Number of fediblock instances. - * example: 0 - * instances: - * type: array - * items: - * type: object - * properties: - * instance: - * type: string - * description: Instance of the block. - * example: mastodon.social - * comment: - * type: string - * description: Comment about the block. - * example: spam + * type: array + * items: + * type: object + * properties: + * instance: + * type: string + * description: Instance of the block. + * example: mastodon.social + * comment: + * type: string + * description: Comment about the block. + * example: spam */ app.use('/api/block_count/:instance', async (req, res) => { if (req.params.instance && req.params.instance.length > 0) {