move frontend to its own folder
This commit is contained in:
20
frontend/src/router/index.ts
Normal file
20
frontend/src/router/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
|
||||
import GameList from '../vues/GameList'
|
||||
|
||||
const rootPath = {
|
||||
path: '/',
|
||||
component: GameList
|
||||
}
|
||||
|
||||
const gameListRoute = {
|
||||
path: '/potato',
|
||||
component: GameList
|
||||
}
|
||||
|
||||
const routes = [rootPath, gameListRoute]
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes
|
||||
})
|
||||
Reference in New Issue
Block a user