Merge "Switched use of "Resource.read()" to "Resource.get()""
This commit is contained in:
commit
a9bc6c0478
@ -74,7 +74,7 @@ angular.module('sb.auth').factory('Session',
|
|||||||
RefreshManager.tryRefresh().then(function () {
|
RefreshManager.tryRefresh().then(function () {
|
||||||
var id = AccessToken.getIdToken();
|
var id = AccessToken.getIdToken();
|
||||||
|
|
||||||
User.read({id: id},
|
User.get({id: id},
|
||||||
function (user) {
|
function (user) {
|
||||||
deferred.resolve(user);
|
deferred.resolve(user);
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
|
@ -88,7 +88,7 @@ angular.module('sb.projects').controller('ProjectDetailController',
|
|||||||
* Load the project
|
* Load the project
|
||||||
*/
|
*/
|
||||||
function loadProject() {
|
function loadProject() {
|
||||||
Project.read(
|
Project.get(
|
||||||
{'id': id},
|
{'id': id},
|
||||||
function (result) {
|
function (result) {
|
||||||
// We've got a result, assign it to the view and unset our
|
// We've got a result, assign it to the view and unset our
|
||||||
|
@ -48,7 +48,7 @@ angular.module('sb.services')
|
|||||||
'create': {
|
'create': {
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
},
|
},
|
||||||
'read': {
|
'get': {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
cache: false
|
cache: false
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user