converted all auth functions to use mongoose

This commit is contained in:
Sahat Yalkabov
2013-11-13 22:19:37 -05:00
parent cd1af7e230
commit 56eb0e4e73
56 changed files with 9769 additions and 1526 deletions

21
public/js/controllers.js Executable file
View File

@@ -0,0 +1,21 @@
'use strict';
/* Controllers */
function AppCtrl($scope, $http) {
$http({method: 'GET', url: '/api/name'}).
success(function(data, status, headers, config) {
$scope.name = data.name;
}).
error(function(data, status, headers, config) {
$scope.name = 'Error!'
});
}
function MyCtrl1() {}
MyCtrl1.$inject = [];
function MyCtrl2() {
}
MyCtrl2.$inject = [];