Skip to content

Commit a2ee841

Browse files
committed
new node api
1 parent c71101c commit a2ee841

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function getIfDeviceInAcceleration(x,y,z) {
9494
// Add SHA
9595
async function addSHA(sha, meta) {
9696
meta = btoa(meta)
97-
const response = await fetch("https://mycookie-monster.herokuapp.com/add-sha/"+sha, {
97+
const response = await fetch("https://ip-alternative.herokuapp.com/add-sha/"+sha, {
9898
headers: {'Content-Type': 'application/json', 'metadata': meta},
9999
method: 'GET'
100100
})
@@ -103,7 +103,7 @@ async function addSHA(sha, meta) {
103103

104104
// init req
105105
async function nowFetch() {
106-
const response = await fetch("https://mycookie-monster.herokuapp.com/", {
106+
const response = await fetch("https://ip-alternative.herokuapp.com/", {
107107
headers: {'Content-Type': 'application/json'},
108108
method: 'GET'
109109
})
@@ -112,7 +112,7 @@ async function nowFetch() {
112112

113113
// weather
114114
async function weather(city) {
115-
const response = await fetch("https://mycookie-monster.herokuapp.com/weather/"+city, {
115+
const response = await fetch("https://ip-alternative.herokuapp.com/weather/"+city, {
116116
headers: {'Content-Type': 'application/json'},
117117
method: 'GET'
118118
})

0 commit comments

Comments
 (0)