Rename/reorganize our urls to be more consistent.

(imported from commit ca3cc7ccd5d7da83a9c60968527378ee1118648e)
This commit is contained in:
Tim Abbott
2012-10-16 15:42:40 -04:00
parent fab64fd7b0
commit 3e994c16b7
8 changed files with 64 additions and 59 deletions

View File

@@ -210,7 +210,7 @@ function update_selected_message(message) {
// doesn't permanently affect where you are.
//
// We also don't want to post if there's no effective change.
$.post("update", {pointer: new_selected_id});
$.post("/json/update_pointer", {pointer: new_selected_id});
}
selected_message_id = new_selected_id;
selected_message = message;
@@ -585,7 +585,7 @@ var get_updates_timeout;
function get_updates() {
get_updates_xhr = $.ajax({
type: 'POST',
url: 'get_updates',
url: '/json/get_updates',
data: received,
dataType: 'json',
timeout: 10*60*1000, // 10 minutes in ms