menambahkan fitur unutk barang saya

This commit is contained in:
2026-06-01 20:24:31 +07:00
parent 8620a3ba96
commit 3bb305f3a2
7 changed files with 316 additions and 5 deletions
+2
View File
@@ -9,6 +9,7 @@ import SavedView from "../views/SavedView.vue"
import LoginView from "../views/LoginView.vue"
import RegisterView from "../views/RegisterView.vue"
import AdminProductsView from "../views/AdminProductsView.vue"
import EditProductView from "../views/EditProductView.vue"
import { getCurrentUser, getToken } from "../utils"
const routes = [
@@ -17,6 +18,7 @@ const routes = [
{ path: "/produk/:id", name: "product-detail", component: ProductDetailView },
{ path: "/jual", name: "sell-product", component: SellProductView, meta: { requiresAuth: true } },
{ path: "/dashboard", name: "dashboard", component: DashboardView, meta: { requiresAuth: true } },
{ path: "/edit/:id", name: "edit-product", component: EditProductView, meta: { requiresAuth: true } },
{ path: "/tersimpan", name: "saved", component: SavedView, meta: { requiresAuth: true } },
{
path: "/admin/products",