refactor blockcount
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
ale 2024-11-15 20:05:01 +01:00
parent b44e199d1d
commit 839c34a310

View File

@ -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) {