init vue and asp.net
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import Home from '@/Home.vue'
|
||||
import NotFound from '@/NotFound.vue'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Startseite',
|
||||
component: Home,
|
||||
},
|
||||
{ path: '/:pathMatch(.*)*', name: 'Nicht gefunden', component: NotFound },
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user