Commit 32bcd943 authored by Ryan Stivers's avatar Ryan Stivers

Changed AJAX Calls

parent 838da249
......@@ -9,6 +9,7 @@ firebase-debug.log*
# Firebase cache
.firebase/
# Firebase config
# Uncomment this if you'd like others to create their own Firebase project.
......
......@@ -35,7 +35,7 @@ document.addEventListener("DOMContentLoaded", function() {
type: "DELETE",
dataType: "json",
url:
"https://us-central1-current-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/" +
"https://us-central1-stivers-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/" +
id
};
......@@ -59,7 +59,7 @@ document.addEventListener("DOMContentLoaded", function() {
type: "PUT",
dataType: "json",
url:
"https://us-central1-current-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/" +
"https://us-central1-stivers-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/" +
key,
data: data,
success: function(response, status) {
......@@ -77,7 +77,7 @@ document.addEventListener("DOMContentLoaded", function() {
type: "PUT",
dataType: "json",
url:
"https://us-central1-current-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/" +
"https://us-central1-stivers-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/" +
key,
data: data,
success: function(response, status) {
......@@ -95,7 +95,7 @@ document.addEventListener("DOMContentLoaded", function() {
type: "GET",
dataType: "json",
url:
"https://us-central1-current-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/admin/*",
"https://us-central1-stivers-scavenger-hunt.cloudfunctions.net/app/api/location/AIzaSyAmxdj4CuNl2GsrjA0nrsWcujB1mkX2iwM/admin/*",
success: function(response, status) {
var beacons = response.maplocations;
Object.keys(beacons).forEach(function(key, index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment