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,