From 0ea0fa45695a7279d8e297f8c8a176eb8e029b1a Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Sun, 13 May 2018 11:14:31 +0530 Subject: [PATCH] Merged UI and backend --- app/facebook/facebook.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/facebook/facebook.js b/app/facebook/facebook.js index eb770ea..ad8fe39 100644 --- a/app/facebook/facebook.js +++ b/app/facebook/facebook.js @@ -18,7 +18,7 @@ angular.module('ngSocial.facebook', ['ngRoute', 'ngCookies']) this.refresh = function(_id, callback){ if($cookies.get('_id')) { $http({ - url: 'http://127.0.0.1:5003/app/getUserInfo', + url: 'http://ec2-18-236-134-110.us-west-2.compute.amazonaws.com:5003/app/getUserInfo', method: "GET", params: { '_id': $cookies.get('_id') @@ -48,7 +48,7 @@ angular.module('ngSocial.facebook', ['ngRoute', 'ngCookies']) var username = $scope.username var password = $scope.password $http({ - url: 'http://127.0.0.1:5003/app/authenticate', + url: 'http://ec2-18-236-134-110.us-west-2.compute.amazonaws.com:5003/app/authenticate', method: "GET", params: { username: username, @@ -91,7 +91,7 @@ angular.module('ngSocial.facebook', ['ngRoute', 'ngCookies']) var post = $scope.body; var _id = $cookies.get('_id'); $http({ - url: 'http://127.0.0.1:5003/app/feed', + url: 'http://ec2-18-236-134-110.us-west-2.compute.amazonaws.com:5003/app/feed', method: "POST", headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' }, data: "post="+ post+"&_id="+_id