nameczz 4 years ago
parent
commit
822c8c7c91
1 changed files with 5 additions and 0 deletions
  1. 5 0
      server/src/collections/collections.controller.ts

+ 5 - 0
server/src/collections/collections.controller.ts

@@ -21,6 +21,11 @@ export class CollectionsController {
     return await this.collectionsService.showCollections();
   }
 
+  @Get('statistics')
+  async getCollectionsIndexStatus() {
+    return await this.collectionsService.getCollectionsIndexStatus();
+  }
+
   @Post()
   @UsePipes(new ValidationPipe())
   async createCollection(@Body() data: CreateCollection) {