Add routing, state mgmt and train types

This commit is contained in:
Conor McNamara
2023-03-04 17:02:06 +00:00
parent b0b5ecd36a
commit 8af615a429
12 changed files with 606 additions and 89 deletions

7
src/router/routes.js Normal file
View File

@ -0,0 +1,7 @@
function loadPage(component) {
return () => import(`@/pages/${component}.vue`)
}
export default [
{path: "/", component:loadPage("MapPage")},
{path: "/insights", component:loadPage("InsightsPage")}
]