|
@@ -9,6 +9,7 @@ router
|
|
.get('/:companionId', guard, controllers.getChatById)
|
|
.get('/:companionId', guard, controllers.getChatById)
|
|
.post('/', guard, validation.startChat, controllers.startChat)
|
|
.post('/', guard, validation.startChat, controllers.startChat)
|
|
.patch('/mute/', guard, controllers.muteChat)
|
|
.patch('/mute/', guard, controllers.muteChat)
|
|
|
|
+ .patch('/socketId/', guard, controllers.socketIdChat)
|
|
.patch('/sort/', guard, controllers.sortChat)
|
|
.patch('/sort/', guard, controllers.sortChat)
|
|
.patch('/seen/', guard, controllers.seenChat)
|
|
.patch('/seen/', guard, controllers.seenChat)
|
|
.patch('/typing/', guard, validation.typingChat, controllers.typingChat)
|
|
.patch('/typing/', guard, validation.typingChat, controllers.typingChat)
|