|
|
|
@ -119,8 +119,8 @@ function accountRoutes(app, middleware, controllers) {
|
|
|
|
|
app.get('/notifications', middleware.buildHeader, middleware.authenticate, controllers.accounts.getNotifications);
|
|
|
|
|
app.get('/api/notifications', middleware.authenticate, controllers.accounts.getNotifications);
|
|
|
|
|
|
|
|
|
|
app.get('/chats', middleware.buildHeader, middleware.authenticate, controllers.accounts.getChats);
|
|
|
|
|
app.get('/api/chats', middleware.authenticate, controllers.accounts.getChats);
|
|
|
|
|
app.get('/chats', middleware.buildHeader, middleware.authenticate, middleware.chat.getContactList, controllers.accounts.getChats);
|
|
|
|
|
app.get('/api/chats', middleware.authenticate, middleware.chat.getContactList, controllers.accounts.getChats);
|
|
|
|
|
app.get('/chats/:userslug', middleware.buildHeader, middleware.authenticate, middleware.chat.getMetadata, middleware.chat.getContactList, middleware.chat.getMessages, controllers.accounts.getChats);
|
|
|
|
|
app.get('/api/chats/:userslug', middleware.authenticate, middleware.chat.getMetadata, middleware.chat.getContactList, middleware.chat.getMessages, controllers.accounts.getChats);
|
|
|
|
|
}
|
|
|
|
|