adding in ajax urls with heroku server
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ $(function() {
|
|||||||
insertOrders = (orders) => {
|
insertOrders = (orders) => {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:3000/insertorders",
|
url: "https://file-upload-server1.herokuapp.com/insertorders",
|
||||||
data: orders,
|
data: orders,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
alert("Success");
|
alert("Success");
|
||||||
@@ -56,7 +56,7 @@ $(function() {
|
|||||||
getOrders = (callback) => {
|
getOrders = (callback) => {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:3000/getorders",
|
url: "https://file-upload-server1.herokuapp.com/getorders",
|
||||||
data: {},
|
data: {},
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
orders = res.result;
|
orders = res.result;
|
||||||
|
|||||||
Reference in New Issue
Block a user