// js/services/note.js

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .factory("Note", NoteFactory);

  NoteFactory.$inject = ["$http"];

  function NoteFactory($http) {
    function getAllNotes() {
      return $http({
        method: "GET",
        url: "/api/notes"
      });
    }

    function createNote(noteData) {
      return $http({
        method: "POST",
        url: "/api/notes",
        data: noteData
      })
    }

    return {
      getAllNotes,
      createNote
    }
  }
})();

@@ -149,16 +149,32 @@
 %5B%22$http%22
+, %22$routeParams%22
 %5D;%0A%0A  fu
@@ -197,16 +197,30 @@
 ry($http
+, $routeParams
 ) %7B%0A    
@@ -327,24 +327,158 @@
  %7D);%0A    %7D%0A%0A
+    function getNoteById() %7B%0A      return $http(%7B%0A        method: %22GET%22,%0A        url: %22/api/notes/%22 + $routeParams.id%0A      %7D)%0A    %7D%0A%0A
     function
@@ -660,16 +660,35 @@
 eateNote
+,%0A      getNoteById
 %0A    %7D%0A 

Add getNoteById method. Add to