change from deprecated sites endpoint to logins

This commit is contained in:
Kyle Spearrin 2017-04-17 15:48:02 -04:00
parent 1ab75115f0
commit 901332dbee
1 changed files with 2 additions and 2 deletions

View File

@ -5,12 +5,12 @@
var _service = {},
_apiUri = appSettings.apiUri;
_service.logins = $resource(_apiUri + '/sites/:id', {}, {
_service.logins = $resource(_apiUri + '/logins/:id', {}, {
get: { method: 'GET', params: { id: '@id' } },
list: { method: 'GET', params: {} },
post: { method: 'POST', params: {} },
put: { method: 'POST', params: { id: '@id' } },
del: { url: _apiUri + '/sites/:id/delete', method: 'POST', params: { id: '@id' } }
del: { url: _apiUri + '/logins/:id/delete', method: 'POST', params: { id: '@id' } }
});
_service.folders = $resource(_apiUri + '/folders/:id', {}, {