mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 07:34:08 -08:00
46 lines
844 B
TypeScript
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',
|
|
},
|
|
],
|
|
});
|