@@ -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
311311app . get ( "/api/nanobrowserquest/players" , async ( req , res , next ) => {
312312 try {
0 commit comments