Merged UI and backend

This commit is contained in:
2018-05-13 03:41:59 +05:30
parent cafdf9db0a
commit 4d04d02c8d

View File

@@ -18,7 +18,7 @@ angular.module('ngSocial.facebook', ['ngRoute'])
this.refresh = function(_id, callback){
if(this.isLoggedIn) {
$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': _id
@@ -48,7 +48,7 @@ angular.module('ngSocial.facebook', ['ngRoute'])
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,
@@ -86,7 +86,7 @@ angular.module('ngSocial.facebook', ['ngRoute'])
var post = $scope.body;
var _id = $scope.connector.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