mobilizon.chapril.org-mobil.../js/src/router/error.ts
Thomas Citharel 0693defd03
Move all routes to async components
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-14 18:59:36 +02:00

16 lines
393 B
TypeScript

import { beforeRegisterGuard } from "@/router/guards/register-guard";
import { RouteConfig } from "vue-router";
export enum ErrorRouteName {
ERROR = "Error",
}
export const errorRoutes: RouteConfig[] = [
{
path: "/error",
name: ErrorRouteName.ERROR,
component: () => import(/* webpackChunkName: "Error" */ "../views/Error.vue"),
beforeEnter: beforeRegisterGuard,
},
];