forked from potsda.mn/mobilizon
0693defd03
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
31 lines
840 B
TypeScript
31 lines
840 B
TypeScript
import { RouteConfig } from "vue-router";
|
|
|
|
export enum ActorRouteName {
|
|
GROUP = "Group",
|
|
CREATE_GROUP = "CreateGroup",
|
|
PROFILE = "Profile",
|
|
MY_GROUPS = "MY_GROUPS",
|
|
}
|
|
|
|
export const actorRoutes: RouteConfig[] = [
|
|
{
|
|
path: "/groups/create",
|
|
name: ActorRouteName.CREATE_GROUP,
|
|
component: () => import(/* webpackChunkName: "CreateGroup" */ "@/views/Group/Create.vue"),
|
|
meta: { requiredAuth: true },
|
|
},
|
|
{
|
|
path: "/@:preferredUsername",
|
|
name: ActorRouteName.GROUP,
|
|
component: () => import(/* webpackChunkName: "Group" */ "@/views/Group/Group.vue"),
|
|
props: true,
|
|
meta: { requiredAuth: false },
|
|
},
|
|
{
|
|
path: "/groups/me",
|
|
name: ActorRouteName.MY_GROUPS,
|
|
component: () => import(/* webpackChunkName: "MyGroups" */ "@/views/Group/MyGroups.vue"),
|
|
meta: { requiredAuth: true },
|
|
},
|
|
];
|