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

@@ -94,8 +94,8 @@ class PublicURLTest(TestCase):
"""
urls = {200: ["/accounts/home/", "/accounts/login/", "/accounts/logout/",
"/accounts/register/"],
302: ["/", "/zephyr/", "/subscriptions/",
"/subscriptions/remove", "/subscriptions/add"]
302: ["/", "/zephyr/", "/json/subscriptions/list",
"/json/subscriptions/remove", "/json/subscriptions/add"]
}
for status_code, url_set in urls.iteritems():
self.fetch(url_set, status_code)