From b3418fdea5c998f3d25fd8e4c1263b307c48892a Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Tue, 20 Jun 2023 12:28:47 +0200 Subject: [PATCH] Created and routed view for JSON formatter --- Frontend/src/router/index.ts | 6 ++++ Frontend/src/views/JsonFormatterView.vue | 35 ++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 Frontend/src/views/JsonFormatterView.vue diff --git a/Frontend/src/router/index.ts b/Frontend/src/router/index.ts index f5cc531..3f9f65d 100644 --- a/Frontend/src/router/index.ts +++ b/Frontend/src/router/index.ts @@ -3,6 +3,7 @@ import { createRouter, createWebHistory } from 'vue-router' const landingPage = import("@views/LandingView.vue") const restMock = import("@views/RestMockView.vue") +const jsonFormatter = import("@views/JsonFormatterView.vue") const xmlFormatter = import("@views/XmlFormatterView.vue") const xsltTool = import("@views/XSLTView.vue") @@ -21,6 +22,11 @@ const routes = [ name: 'xmlFormatter', component: () => xmlFormatter }, + { + path: '/format/json', + name: 'jsonFormatter', + component: () => jsonFormatter + }, { path: '/xml/xpath', name: 'xpath', diff --git a/Frontend/src/views/JsonFormatterView.vue b/Frontend/src/views/JsonFormatterView.vue new file mode 100644 index 0000000..1483e5b --- /dev/null +++ b/Frontend/src/views/JsonFormatterView.vue @@ -0,0 +1,35 @@ + + + \ No newline at end of file