app.factory('api', function() {
    return {
        var url = "http://localhost:3000/";
        users: {
            get: function(id) {
                return $http.get(url + "users/" + id);
            },
            add: function(user) {
                return $http.post(url + "users/", user);
            }
            remove: function(user) {
                return $http.delete(url + "users/", user);
            },
            update: function(user) {
                return $http.put(url + "users/", user);
            },
            login: function(username, password) {
                return $http.post(url + "users/login/", { "username": username, "password": password});
            }
        },
        groups: {
            get: function(id) {
                return $http.get(url + "groups/" + id);
            },
            add: function(group) {
                return $http.post(url + "groups/", group);
            }
            remove: function(id) {
                return $http.delete(url + "groups/", group);
            }
        }
    };
});

@@ -50,17 +50,12 @@
     
-var 
 url
- =
+:
  %22ht
@@ -75,17 +75,17 @@
 t:3000/%22
-;
+,
 %0A       
@@ -155,24 +155,29 @@
 n $http.get(
+this.
 url + %22users
@@ -261,32 +261,37 @@
 turn $http.post(
+this.
 url + %22users/%22, 
@@ -302,32 +302,33 @@
 );%0A            %7D
+,
 %0A            rem
@@ -381,24 +381,29 @@
 http.delete(
+this.
 url + %22users
@@ -498,16 +498,21 @@
 ttp.put(
+this.
 url + %22u
@@ -621,24 +621,29 @@
  $http.post(
+this.
 url + %22users
@@ -808,16 +808,21 @@
 ttp.get(
+this.
 url + %22g
@@ -920,16 +920,21 @@
 tp.post(
+this.
 url + %22g
@@ -955,32 +955,33 @@
 );%0A            %7D
+,
 %0A            rem
@@ -1036,16 +1036,21 @@
 .delete(
+this.
 url + %22g

fix some typos that broke the build