From d586d8a559f8baf5a03eeb0ee16ba520042e3e56 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Mon, 30 Jul 2018 21:45:56 -0700 Subject: [PATCH] adding in ajax urls with heroku server --- assets/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/main.js b/assets/main.js index 58cb869..b014fce 100644 --- a/assets/main.js +++ b/assets/main.js @@ -41,7 +41,7 @@ $(function() { insertOrders = (orders) => { $.ajax({ type: "POST", - url: "http://localhost:3000/insertorders", + url: "https://file-upload-server1.herokuapp.com/insertorders", data: orders, success: function (data) { alert("Success"); @@ -56,7 +56,7 @@ $(function() { getOrders = (callback) => { $.ajax({ type: "GET", - url: "http://localhost:3000/getorders", + url: "https://file-upload-server1.herokuapp.com/getorders", data: {}, success: function (res) { orders = res.result;