feat: add product view page

This commit is contained in:
Nikita Kiselev
2025-07-12 11:30:26 +03:00
parent 252854e67e
commit f13e128d03
11 changed files with 309 additions and 112 deletions

13
spa/src/router.js Normal file
View File

@@ -0,0 +1,13 @@
import {createRouter, createWebHistory} from 'vue-router';
import Home from './views/Home.vue';
import Product from './views/Product.vue';
const routes = [
{path: '/', component: Home},
{path: '/product/:id', component: Product},
];
export const router = createRouter({
history: createWebHistory('/image/catalog/tgshopspa/'),
routes,
});