Replace /json/get_old_messages with REST style route.

This commit is contained in:
Ashish
2016-04-02 01:25:17 +05:30
committed by Tim Abbott
parent 8fc8717409
commit cb8da46bbf
4 changed files with 11 additions and 11 deletions

View File

@@ -489,8 +489,8 @@ exports.load_old_messages = function load_old_messages(opts) {
data.use_first_unread_anchor = true;
}
channel.post({
url: '/json/get_old_messages',
channel.get({
url: '/json/messages',
data: data,
idempotent: true,
success: function (data) {