Skip to content

Commit

Permalink
#2997-removed route
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Dec 11, 2024
1 parent 91b5429 commit d53dc2e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/backend/src/routes/notifications.routes.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import express from 'express';
import NotificationsController from '../controllers/notifications.controllers';
import { nonEmptyString, validateInputs } from '../utils/validation.utils';
import { body } from 'express-validator';

const notificationsRouter = express.Router();

notificationsRouter.post('/task-deadlines', NotificationsController.sendDailySlackNotifications);
notificationsRouter.post(
'/send/users',
nonEmptyString(body('text')),
nonEmptyString(body('iconName')),
body('userIds').isArray(),
nonEmptyString(body('userIds.*')),
validateInputs,
NotificationsController.sendNotificationToUsers
);

export default notificationsRouter;

0 comments on commit d53dc2e

Please sign in to comment.