Creating admin pages, new brand API endpoint

This commit is contained in:
2024-09-25 15:42:05 +02:00
parent 6dd49f630d
commit 0856540441
28 changed files with 417 additions and 76 deletions

View File

@@ -0,0 +1,23 @@
import DashboardPage from "@/pages/admin/dashboardPage/index.vue"
import CategoriesPage from "@/pages/admin/categoriesPage/index.vue"
import AccountsPage from "@/pages/admin/accountsPage/index.vue"
import ProductsPage from "@/pages/admin/productsPage/index.vue"
export default [
{
path: '/admin/dashboard',
component: DashboardPage
},
{
path: '/admin/categories',
component: CategoriesPage
},
{
path: '/admin/accounts',
component: AccountsPage
},
{
path: '/admin/products',
component: ProductsPage
}
]

View File

@@ -6,6 +6,7 @@ import LoginPage from "@/pages/loginPage/index.vue"
import BasketPage from "@/pages/basketPage/index.vue"
import HelpPage from "@/pages/helpPage/index.vue"
import ScoreBoardPage from "@/pages/scoreBoardPage/index.vue"
import adminRoutes from "./admin.routes";
const routes = [
{ path: '/', component: ProductsPage },
@@ -15,7 +16,8 @@ const routes = [
{ path: '/login', component: LoginPage },
{ path: '/basket', component: BasketPage },
{ path: '/scoreboard', component: ScoreBoardPage },
{ path: '/help', component: HelpPage }
{ path: '/help', component: HelpPage },
...adminRoutes
]
export default routes