public/app/services/post.js
function(post) {
      return $http({
        url : '/api/v1/posts/' + post._id,
        method : 'PUT',
        params : {access_token : authProvider.getUser().token},
        data : post
      }).catch(authProvider.checkApiResponse);
    }
function(post) {
      return $http({
        url : '/api/v1/posts/' + post._id,
        method : 'PUT',
        params : {access_token : authProvider.getUser().token},
        data : post
      }).catch(authProvider.checkApiResponse);
    }
function ( post ) { return $http ( { url : '/api/v1/posts/' + post . _id , method : 'PUT' , params : { access_token : authProvider . getUser ( ) . token } , data : post } ) . catch ( authProvider . checkApiResponse ) ; }
Saves a post
Saves a post