T1ckbase commited on
Commit
db0618c
·
1 Parent(s): d460348
Files changed (1) hide show
  1. main.ts +4 -4
main.ts CHANGED
@@ -1,5 +1,5 @@
1
  import { Hono } from 'hono';
2
- import { logger } from 'hono/logger';
3
  import { Minesweeper } from './minesweeper.ts';
4
  import { isGithubUserPath } from './utils.ts';
5
 
@@ -13,7 +13,7 @@ const minesweeper = new Minesweeper(8, 8, 10, './images');
13
 
14
  const app = new Hono();
15
 
16
- app.use(logger());
17
 
18
  app.get('/', (c) => c.text(`Play minesweeper:\nhttps://github.com/${USER}`));
19
 
@@ -58,7 +58,7 @@ app.get('/cell/:row/:col/click', (c) => {
58
 
59
  minesweeper.revealCell(row, col);
60
 
61
- return c.redirect(redirectUrl);
62
  });
63
 
64
  app.get('/game/status', (c) => {
@@ -91,7 +91,7 @@ app.get('/game/reset', (c) => {
91
  console.warn(e instanceof Error ? e.message : e);
92
  }
93
 
94
- return c.redirect(redirectUrl);
95
  });
96
 
97
  Deno.serve(app.fetch);
 
1
  import { Hono } from 'hono';
2
+ // import { logger } from 'hono/logger';
3
  import { Minesweeper } from './minesweeper.ts';
4
  import { isGithubUserPath } from './utils.ts';
5
 
 
13
 
14
  const app = new Hono();
15
 
16
+ // app.use(logger());
17
 
18
  app.get('/', (c) => c.text(`Play minesweeper:\nhttps://github.com/${USER}`));
19
 
 
58
 
59
  minesweeper.revealCell(row, col);
60
 
61
+ return c.redirect(redirectUrl + '#minesweeper');
62
  });
63
 
64
  app.get('/game/status', (c) => {
 
91
  console.warn(e instanceof Error ? e.message : e);
92
  }
93
 
94
+ return c.redirect(redirectUrl + '#minesweeper');
95
  });
96
 
97
  Deno.serve(app.fetch);