Skip to content

Commit

Permalink
feat: Change routes for RBAC
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Feb 14, 2024
1 parent a9edfca commit dc44dd9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/editor-ui/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const routes = [
},
},
{
path: '/credentials',
path: '/projects/:projectId/credentials',
name: VIEWS.CREDENTIALS,
components: {
default: CredentialsView,
Expand Down Expand Up @@ -213,7 +213,7 @@ export const routes = [
},
},
{
path: '/workflows',
path: '/projects/:projectId/workflows',
name: VIEWS.WORKFLOWS,
components: {
default: WorkflowsView,
Expand All @@ -224,7 +224,7 @@ export const routes = [
},
},
{
path: '/workflow/:name/debug/:executionId',
path: '/projects/:projectId/workflow/:name/debug/:executionId',
name: VIEWS.EXECUTION_DEBUG,
components: {
default: NodeView,
Expand All @@ -243,7 +243,7 @@ export const routes = [
},
},
{
path: '/workflow/:name/executions',
path: '/projects/:projectId/workflow/:name/executions',
name: VIEWS.WORKFLOW_EXECUTIONS,
components: {
default: WorkflowExecutionsList,
Expand Down Expand Up @@ -280,7 +280,7 @@ export const routes = [
],
},
{
path: '/workflow/:workflowId/history/:versionId?',
path: '/projects/:projectId/workflow/:workflowId/history/:versionId?',
name: VIEWS.WORKFLOW_HISTORY,
components: {
default: WorkflowHistory,
Expand Down Expand Up @@ -326,7 +326,7 @@ export const routes = [
},
},
{
path: '/workflow/new',
path: '/projects/:projectId/workflow/new',
name: VIEWS.NEW_WORKFLOW,
components: {
default: NodeView,
Expand All @@ -350,7 +350,7 @@ export const routes = [
},
},
{
path: '/workflow/:name',
path: '/projects/:projectId/workflow/:name',
name: VIEWS.WORKFLOW,
components: {
default: NodeView,
Expand All @@ -364,8 +364,8 @@ export const routes = [
},
},
{
path: '/workflow',
redirect: '/workflow/new',
path: '/projects/:projectId/workflow',
redirect: '/projects/:projectId/workflow/new',
},
{
path: '/signin',
Expand Down

0 comments on commit dc44dd9

Please sign in to comment.