n8n/packages/editor-ui/src/router.ts
Jan Oberhauser 70e972ff7d Revert "🔀 Merge branch 'oauth-support' of https://github.com/tildabio/n8n"
This reverts commit 0c5972bb98, reversing
changes made to 3de03b5097.
2020-01-10 14:26:06 -06:00

46 lines
844 B
TypeScript

import Vue from 'vue';
import Router from 'vue-router';
import MainHeader from '@/components/MainHeader.vue';
import MainSidebar from '@/components/MainSidebar.vue';
import NodeView from '@/views/NodeView.vue';
Vue.use(Router);
export default new Router({
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/execution/:id',
name: 'ExecutionById',
components: {
default: NodeView,
header: MainHeader,
sidebar: MainSidebar,
},
},
{
path: '/workflow',
name: 'NodeViewNew',
components: {
default: NodeView,
header: MainHeader,
sidebar: MainSidebar,
},
},
{
path: '/workflow/:name',
name: 'NodeViewExisting',
components: {
default: NodeView,
header: MainHeader,
sidebar: MainSidebar,
},
},
{
path: '/',
redirect: '/workflow',
},
],
});