diff --git a/src/pages/AdminPage.vue b/src/pages/AdminPage.vue new file mode 100644 index 0000000..36fa2f1 --- /dev/null +++ b/src/pages/AdminPage.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/routes.ts b/src/routes.ts index 3bc48af..084aaff 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -4,7 +4,6 @@ import type { RouteRecordRaw, RouteLocationNormalized } from "vue-router"; /* eslint-disable-next-line import-x/no-cycle */ import store from "./store"; import { usePlexAuth } from "./composables/usePlexAuth"; - const { getPlexAuthCookie } = usePlexAuth(); declare global { @@ -80,6 +79,12 @@ const routes: RouteRecordRaw[] = [ path: "/password", component: () => import("./pages/GenPasswordPage.vue") }, + { + name: "admin", + path: "/admin", + meta: { requiresAuth: true }, + component: () => import("./pages/AdminPage.vue") + }, { name: "missing-plex-auth", path: "/missing/plex",