X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Frouter.js;h=26bdee9441fdfb34452c6f394eff187aa71adc3d;hp=49f777d00ea463388aee84a18a110b85392a5c32;hb=afd3240d89a2f6191fe9426960dc0c1667b40c77;hpb=9330b976e02148bb89e11819070d5d818e82e522 diff --git a/client/src/router.js b/client/src/router.js index 49f777d0..26bdee94 100644 --- a/client/src/router.js +++ b/client/src/router.js @@ -55,17 +55,26 @@ const router = new Router({ component: Hall, //redirect: "/", //problem: redirection before end of AJAX request }, + { + path: "/mygames", + name: "mygames", + component: loadView("MyGames"), + }, { path: "/game/:id", name: "game", component: loadView("Game"), }, + { + path: "/analyze/:vname([a-zA-Z0-9]+)", + name: "analyze", + component: loadView("Game"), + }, { path: "/about", name: "about", component: loadView("About"), }, - // TODO: myGames, problemId: https://router.vuejs.org/guide/essentials/dynamic-matching.html ] });