From 77257ec9c482ad6d43f55a7ce325e7f89bee35c4 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 21 Aug 2019 20:04:15 +0200 Subject: [PATCH] a --- modules/comments/comment.routes.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/comments/comment.routes.js b/modules/comments/comment.routes.js index 564421f..5196db2 100644 --- a/modules/comments/comment.routes.js +++ b/modules/comments/comment.routes.js @@ -56,6 +56,15 @@ routes.get('/comments/speakers', * ADMINISTRACIÓN ********************************************************************************************************* */ +routes.get('/admin/comments', + isAdministratorUser, + // PaginateMiddleware.middleware(), + SortMiddleware.middleware({ default: "createdAt" }), + commentController.find({ + scopes: ['defaultScope'], + }), +); + routes.get('/admin/comments/events/:entityId', isAdministratorUser,