UNPKG

@scalar/api-client

Version:

the open source API testing client

114 lines (113 loc) 3.17 kB
import n from "../../collection/components/Authentication.vue.js"; import e from "../../collection/components/Cookies.vue.js"; import o from "../../collection/components/Environment.vue.js"; import m from "../../collection/components/Overview.vue.js"; import a from "../../collection/components/Servers.vue.js"; import t from "../../collection/components/Settings.vue.js"; import c from "../../collection/DocumentCollection.vue.js"; import r from "../../collection/WorkspaceCollection.vue.js"; import p from "../../operation/Operation.vue.js"; import { workspaceStorage as i } from "../../../helpers/storage.js"; const g = [ { path: "/workspace/:workspaceSlug", children: [ { path: "document/:documentSlug", children: [ // Example page { name: "example", path: "path/:pathEncoded/method/:method/example/:exampleName", component: p }, // Document Page { name: "document", path: "", component: c, children: [ // Redirect to overview { name: "document.redirect", path: "", redirect: { name: "document.overview" } }, // Document overview { name: "document.overview", path: "overview", component: m }, // Document servers { name: "document.servers", path: "servers", component: a }, // Document environment { name: "document.environment", path: "environment", component: o }, // Document authentication { name: "document.authentication", path: "authentication", component: n }, // Document cookies { name: "document.cookies", path: "cookies", component: e }, // Document settings { name: "document.settings", path: "settings", component: t } ] } ] }, // Workspace page { name: "workspace", path: "", component: r, children: [ // Workspace environment { name: "workspace.environment", path: "environment", component: o }, // Workspace cookies { name: "workspace.cookies", path: "cookies", component: e }, // Workspace settings { name: "workspace.settings", path: "settings", component: t } ] } ] }, { path: "/:pathMatch(.*)*", redirect: () => i.getLastPath() ?? "/workspace/default/document/drafts/overview" } ]; export { g as ROUTES };