APIv2: add paths /api/v2/* and /api/v1/*. v1 has limited deprecated routes (only the things I know currently work), and we'll notify 3rd-partyists to migrate to apiv2 once it's documented and tested

This commit is contained in:
Tyler Renelle
2013-12-15 17:22:35 -07:00
parent 91e1287d06
commit 259f9033c4
21 changed files with 213 additions and 117 deletions

View File

@@ -2,7 +2,7 @@
habitrpg.controller("AdminCtrl", ['$scope', '$rootScope', 'User', 'Notification', 'API_URL', '$resource',
function($scope, $rootScope, User, Notification, API_URL, $resource) {
var Contributor = $resource(API_URL + '/api/v1/admin/members/:uid', {uid:'@_id'});
var Contributor = $resource(API_URL + '/api/v2/admin/members/:uid', {uid:'@_id'});
$scope.profile = undefined;
$scope.loadUser = function(uuid){