Creating admin pages, new brand API endpoint
This commit is contained in:
23
software/src/router/admin.routes.ts
Normal file
23
software/src/router/admin.routes.ts
Normal 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
|
||||
}
|
||||
]
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user