selfservice/src/routes.js
Philipp Dormann bbceaf2624
All checks were successful
ci/woodpecker/push/build Pipeline was successful
refactor: drop sub-directory routing
2024-12-02 16:47:07 +01:00

24 lines
889 B
JavaScript

import Home from "./views/Home.vue";
import Imprint from "./views/Imprint.vue";
import Privacy from "./views/Privacy.vue";
import Register from "./views/Register.vue";
import Profile from "./views/Profile.vue";
import ProfileNone from "./views/ProfileNone.vue";
console.log(config);
/** @type {import('vue-router').RouterOptions['routes']} */
export const routes = [
{ path: "/", component: Home },
{ path: "/imprint", component: Imprint },
{ path: "/imprint/", component: Imprint },
{ path: "/privacy", component: Privacy },
{ path: "/privacy/", component: Privacy },
{ path: "/register", component: Register },
{ path: "/register/", component: Register },
{ path: "/register/:token", component: Register, props: true },
{ path: "/profile", component: Profile },
{ path: "/profile/", component: ProfileNone },
{ path: "/profile/:token", component: Profile, props: true },
];