Skip to content

Commit c3c2582

Browse files
committed
add info to guide
1 parent b51d0c1 commit c3c2582

File tree

3 files changed

+123
-125
lines changed

3 files changed

+123
-125
lines changed

server/server.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -280,33 +280,33 @@ app.get("/api/participants", async (req, res) => {
280280
res.send(data);
281281
});
282282

283-
app.get("/api/nanoquakejs/scores", async (req, res) => {
284-
let json = {};
285-
try {
286-
const res = await fetch("https://rainstorm.city/nanoquake/scores");
287-
json = await res.json();
288-
} catch (err) {
289-
Sentry.captureException(err);
290-
}
291-
292-
res.send(json);
293-
});
294-
295-
app.post("/api/nanoquakejs/register", async (req, res, next) => {
296-
try {
297-
const response = await fetch("https://rainstorm.city/nanoquake/register", {
298-
method: "POST",
299-
headers: {
300-
"Content-Type": "application/json",
301-
},
302-
body: JSON.stringify(req.body),
303-
});
304-
const json = await response.json();
305-
res.send(json);
306-
} catch (err) {
307-
next(err);
308-
}
309-
});
283+
// app.get("/api/nanoquakejs/scores", async (req, res) => {
284+
// let json = {};
285+
// try {
286+
// const res = await fetch("https://rainstorm.city/nanoquake/scores");
287+
// json = await res.json();
288+
// } catch (err) {
289+
// Sentry.captureException(err);
290+
// }
291+
292+
// res.send(json);
293+
// });
294+
295+
// app.post("/api/nanoquakejs/register", async (req, res, next) => {
296+
// try {
297+
// const response = await fetch("https://rainstorm.city/nanoquake/register", {
298+
// method: "POST",
299+
// headers: {
300+
// "Content-Type": "application/json",
301+
// },
302+
// body: JSON.stringify(req.body),
303+
// });
304+
// const json = await response.json();
305+
// res.send(json);
306+
// } catch (err) {
307+
// next(err);
308+
// }
309+
// });
310310

311311
app.get("/api/nanobrowserquest/players", async (req, res, next) => {
312312
try {

src/api/contexts/MarketStatistics.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ const Provider: React.FC<Props> = ({ children }) => {
130130
const res = await fetch(`/api/market-statistics${query}`);
131131
const json = await res.json();
132132

133-
console.log("~~~~/api/market-statisticsjson", json);
134-
135133
if (!json || json.error) {
136134
isError = true;
137135
} else {

0 commit comments

Comments
 (0)