Skip to content

Commit

Permalink
🐛 fix: Corrigindo URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyanovidio committed Jul 31, 2023
1 parent bf9f0b9 commit 92c4932
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions nivel-06/stage/desafio-01/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Router } from "./router.js";

const router = new Router();

router.add("/", "/pages/home.html");
router.add("/about", "/pages/about.html");
router.add("/contact", "/pages/contact.html");
router.add(404, "/pages/404.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-01/", "/pages/home.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-01/about", "/pages/about.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-01/contact", "/pages/contact.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-01/404", "/pages/404.html");

router.handle();

Expand Down
8 changes: 4 additions & 4 deletions nivel-06/stage/desafio-02/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Router } from "./router.js";

const router = new Router();

router.add("/", "../../pages/home.html");
router.add("/universe", "../../pages/universe.html");
router.add("/exploration", "../../pages/exploration.html");
router.add(404, "../../pages/404.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-02/", "../../pages/home.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-02/universe", "../../pages/universe.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-02/exploration", "../../pages/exploration.html");
router.add("/rocketseat-explorer/nivel-06/stage/desafio-02/404", "../../pages/404.html");

router.handle();
window.onpopstate = () => router.handle();
Expand Down

0 comments on commit 92c4932

Please sign in to comment.