This commit is contained in:
tamaina
2023-05-29 14:11:51 +00:00
parent 94f25d9cdd
commit a1c96d9bcb
2 changed files with 24 additions and 16 deletions

View File

@@ -1465,7 +1465,27 @@ export const endpoints = {
},
res: undefined,
}],
}
},
'admin/get-index-stats': {
requireCredential: true,
requireAdmin: true,
tags: ['admin'],
defines: [{
req: undefined,
res: {
type: 'array',
items: {
type: 'object',
properties: {
tablename: { type: 'string' },
indexname: { type: 'string' },
},
},
},
}],
},
} as const satisfies { [x: string]: IEndpointMeta; };
/**