menambahkan fitur unutk barang saya
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user