Rename public to www

This commit is contained in:
Ben Ramey
2014-03-22 20:21:21 -05:00
parent f9479b7734
commit 6ddedf901e
31 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
var CreateRunController, lunchControllers;
lunchControllers = angular.module('lunchControllers');
lunchControllers.controller('CreateRunCtrl', [
'$scope', '$http', '$location', 'socket', CreateRunController = function($scope, $http, $location, socket) {
$scope.run = {
name: 'run name',
creatorName: 'ben ramey',
creatorEmail: 'ben.ramey@gmail.com',
invitees: [
{
name: 'bob',
email: 'bob@bob.com'
}
],
restaurant: 'subway'
};
$scope.addInvitee = function() {
return $scope.run.invitees.push({});
};
return $scope.create = function(run) {
var data;
data = angular.copy(run);
return socket.post('/run', data, function(response) {
$location.path('/run/' + response.id);
return $scope.$apply();
});
};
}
]);