Merged UI and backend
This commit is contained in:
@@ -18,7 +18,7 @@ angular.module('ngSocial.facebook', ['ngRoute', 'ngCookies'])
|
|||||||
this.refresh = function(_id, callback){
|
this.refresh = function(_id, callback){
|
||||||
if($cookies.get('_id')) {
|
if($cookies.get('_id')) {
|
||||||
$http({
|
$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",
|
method: "GET",
|
||||||
params: {
|
params: {
|
||||||
'_id': $cookies.get('_id')
|
'_id': $cookies.get('_id')
|
||||||
@@ -48,7 +48,7 @@ angular.module('ngSocial.facebook', ['ngRoute', 'ngCookies'])
|
|||||||
var username = $scope.username
|
var username = $scope.username
|
||||||
var password = $scope.password
|
var password = $scope.password
|
||||||
$http({
|
$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",
|
method: "GET",
|
||||||
params: {
|
params: {
|
||||||
username: username,
|
username: username,
|
||||||
@@ -91,7 +91,7 @@ angular.module('ngSocial.facebook', ['ngRoute', 'ngCookies'])
|
|||||||
var post = $scope.body;
|
var post = $scope.body;
|
||||||
var _id = $cookies.get('_id');
|
var _id = $cookies.get('_id');
|
||||||
$http({
|
$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",
|
method: "POST",
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' },
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' },
|
||||||
data: "post="+ post+"&_id="+_id
|
data: "post="+ post+"&_id="+_id
|
||||||
|
|||||||
Reference in New Issue
Block a user