function Artwork($http) {

  this.getArtworks = function() {
    return $http.get('http://localhost:3000/artworks')
  }
  
  this.getArtwork = function(id) {
    return $http.get('http://localhost:3000/artworks/' + id + '.json')
  }
}

angular
  .module('app')
  .service('Artwork', Artwork)

@@ -117,11 +117,9 @@
   %7D%0A
-  
 %0A
+
   th
@@ -145,24 +145,24 @@
 ction(id) %7B%0A
-
     return $
@@ -223,16 +223,125 @@
 on')%0A  %7D
+%0A%0A  this.destroyArtwork = function(id) %7B%0A    return $http.delete('http://localhost:3000/artworks/' + id))%0A  %7D
 %0A%7D%0A%0Aangu

add destroyArtwork function to Artwork service