mirror of https://github.com/halo-dev/halo
35 lines
826 B
TypeScript
35 lines
826 B
TypeScript
import type { RouteRecordRaw } from "vue-router";
|
|
import NotFound from "@/views/exceptions/NotFound.vue";
|
|
import Forbidden from "@/views/exceptions/Forbidden.vue";
|
|
import BasicLayout from "@uc/layouts/BasicLayout.vue";
|
|
import ResetPassword from "@uc/views/ResetPassword.vue";
|
|
|
|
export const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
path: "/:pathMatch(.*)*",
|
|
component: BasicLayout,
|
|
children: [{ path: "", name: "NotFound", component: NotFound }],
|
|
},
|
|
{
|
|
path: "/403",
|
|
component: BasicLayout,
|
|
children: [
|
|
{
|
|
path: "",
|
|
name: "Forbidden",
|
|
component: Forbidden,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/reset-password/:username",
|
|
component: ResetPassword,
|
|
name: "ResetPassword",
|
|
meta: {
|
|
title: "core.uc_reset_password.title",
|
|
},
|
|
},
|
|
];
|
|
|
|
export default routes;
|