X-Git-Url: https://git.auder.net/assets/discord.svg?a=blobdiff_plain;f=client%2Fsrc%2Frouter.js;h=071af8c5257a7c5cac68a966ee394e833ddfcb94;hb=89021f181ac0689bbc785ce0ebd9a910e66352b0;hp=b2efee78e292b78242ae521bb694271b985afd6f;hpb=8418f0d79395f40172b11d62eef8b83112f1d240;p=vchess.git diff --git a/client/src/router.js b/client/src/router.js index b2efee78..071af8c5 100644 --- a/client/src/router.js +++ b/client/src/router.js @@ -38,13 +38,18 @@ const router = new Router({ name: "logout", component: loadView("Logout"), }, + { + path: "/problems", + name: "myproblems", + component: loadView("Problems"), + }, { path: "/mygames", name: "mygames", component: loadView("MyGames"), }, { - path: "/game/:id", + path: "/game/:id([a-zA-Z0-9]+)", name: "game", component: loadView("Game"), },