File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OGY1MWZkN
10
10
11
11
// mark single or all notifications as read
12
12
13
- POST http://localhost:5000/private/notifications/mark-as-read
13
+ PUT http://localhost:5000/private/notifications/mark-as-read
14
14
Content-Type: application/json
15
15
# Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OGY0OTU0OTZlOGJlNTI2NmYyZDY5OCIsImlhdCI6MTY4NzM4NjY0NSwiZXhwIjoxNjg3NDczMDQ1fQ.0g4cOnj_TQQ5uof9y4q-9IR8mb9-k6eAT3DBOu7ZIYc # Souvik
16
16
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OGY1MWZkNDRhY2MzYTdjMzM1Zjc1YyIsImlhdCI6MTY4NzM4ODgwMSwiZXhwIjoxNjg3NDc1MjAxfQ.FDhY4o_986RwkNvVQ8WjHh_LwU8P9wPibShECRIlpQQ
Original file line number Diff line number Diff line change 8
8
const router = express . Router ( )
9
9
10
10
router . route ( '/get-all' ) . get ( getAllNotifications )
11
- router . route ( '/mark-as-read' ) . post ( markAsRead )
11
+ router . route ( '/mark-as-read' ) . put ( markAsRead )
12
12
router . route ( "/recent-notifications" ) . get ( getRecentNotifications ) // this will fetch recet 10 unread notifications
13
13
14
14
export default router
You can’t perform that action at this time.
0 commit comments