Change some URLs associated with subscriptions.

Put all the 'API'-ish URLs in the /json/ namespace so that
/subscriptions and /subscriptions/add, etc. can be real
user-facing URLs if we want them to be.

(imported from commit 1455a32d27e44547ab1874b6289243cb40c85dde)
This commit is contained in:
Waseem Daher
2012-09-21 17:22:15 -04:00
parent f4483832b2
commit f1aa17cf1d
5 changed files with 12 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ $(function () {
$('#sidebar a[href="#subscriptions"]').click(function () {
$.ajax({
type: 'GET',
url: 'json/subscriptions/',
url: 'json/subscriptions/list',
dataType: 'json',
timeout: 10*1000,
success: function (data) {
@@ -85,7 +85,7 @@ $.ajaxSetup({
function sub(zephyr_class) {
// TODO: check the return value and handle an error condition
$.post('/subscriptions/add', {new_subscription: zephyr_class});
$.post('/json/subscriptions/add', {new_subscription: zephyr_class});
}
function compose_button() {