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