2020-02-18 07:57:00 +00:00
|
|
|
import { RouteConfig } from "vue-router";
|
|
|
|
import CreateGroup from "@/views/Group/Create.vue";
|
|
|
|
import Group from "@/views/Group/Group.vue";
|
|
|
|
import MyGroups from "@/views/Group/MyGroups.vue";
|
|
|
|
|
2019-02-22 13:55:47 +00:00
|
|
|
export enum ActorRouteName {
|
2020-02-18 07:57:00 +00:00
|
|
|
GROUP = "Group",
|
|
|
|
CREATE_GROUP = "CreateGroup",
|
|
|
|
PROFILE = "Profile",
|
|
|
|
MY_GROUPS = "MY_GROUPS",
|
2019-06-17 15:15:27 +00:00
|
|
|
}
|
|
|
|
|
2020-02-18 07:57:00 +00:00
|
|
|
export const actorRoutes: RouteConfig[] = [
|
|
|
|
{
|
|
|
|
path: "/groups/create",
|
|
|
|
name: ActorRouteName.CREATE_GROUP,
|
|
|
|
component: CreateGroup,
|
|
|
|
meta: { requiredAuth: true },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/@:preferredUsername",
|
|
|
|
name: ActorRouteName.GROUP,
|
|
|
|
component: Group,
|
|
|
|
props: true,
|
|
|
|
meta: { requiredAuth: false },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/groups/me",
|
|
|
|
name: ActorRouteName.MY_GROUPS,
|
|
|
|
component: MyGroups,
|
|
|
|
meta: { requiredAuth: true },
|
|
|
|
},
|
|
|
|
];
|