Initial commit: Add maimaiDX API web application with AimeDB scanning and logging features
This commit is contained in:
45
frontend/src/router/index.ts
Normal file
45
frontend/src/router/index.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import MusicView from '../views/MusicView.vue'
|
||||
import ProfileView from '../views/ProfileView.vue'
|
||||
import AuthLiteDeliveryView from '../views/AuthLiteDeliveryView.vue'
|
||||
import AimeDBView from '../views/AimeDBView.vue'
|
||||
import LogsView from '../views/LogsView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: HomeView
|
||||
},
|
||||
{
|
||||
path: '/music',
|
||||
name: 'music',
|
||||
component: MusicView
|
||||
},
|
||||
{
|
||||
path: '/profile',
|
||||
name: 'profile',
|
||||
component: ProfileView
|
||||
},
|
||||
{
|
||||
path: '/aime-db',
|
||||
name: 'aime-db',
|
||||
component: AimeDBView
|
||||
},
|
||||
{
|
||||
path: '/auth-lite-delivery',
|
||||
name: 'auth-lite-delivery',
|
||||
component: AuthLiteDeliveryView
|
||||
},
|
||||
{
|
||||
path: '/logs',
|
||||
name: 'logs',
|
||||
component: LogsView
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user