Skip to content

Commit

Permalink
Refactor route to render the game UI at "/game"
Browse files Browse the repository at this point in the history
  • Loading branch information
victorKariuki committed Oct 3, 2024
1 parent be940fc commit d1e09ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const express = require("express");
const router = express.Router();

// Render the game UI
router.get("/", (req, res) => {
router.get("/game", (req, res) => {
try {
const gameBoard = [" ", " ", " ", " ", " ", " ", " ", " ", " "];
res.render("index", { gameBoard });
Expand All @@ -12,4 +12,6 @@ router.get("/", (req, res) => {
}
});



module.exports = router;

0 comments on commit d1e09ac

Please sign in to comment.