feat: update backend

This commit is contained in:
yanghao05
2025-04-01 16:21:43 +08:00
parent 473f9d8e31
commit f696dfdfe8
17 changed files with 1958 additions and 43 deletions

View File

@@ -0,0 +1,26 @@
import { createRouter, createWebHistory } from 'vue-router';
// Define your routes here
const routes = [
{
path: '/',
name: 'Home',
component: () => import('./pages/HomePage.vue')
},
{
path: '/posts',
name: 'Posts',
component: () => import('./pages/PostsPage.vue')
},
{
path: '/medias',
name: 'Medias',
component: () => import('./pages/MediasPage.vue')
}
];
// Create the router instance
export const router = createRouter({
history: createWebHistory(),
routes
});