From dbb6db11ae3582505f6f69a6516ca1bf0075c14a Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Mon, 20 Jan 2025 19:37:46 +0530 Subject: [PATCH] fix: schema route changes Signed-off-by: bhavanakarwade --- src/config/pathRoutes.ts | 2 +- src/pages/organizations/schemas/[schemaId].astro | 9 +++++++++ .../organizations/schemas/view-schema/[schemaId].astro | 9 --------- 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 src/pages/organizations/schemas/[schemaId].astro delete mode 100644 src/pages/organizations/schemas/view-schema/[schemaId].astro diff --git a/src/config/pathRoutes.ts b/src/config/pathRoutes.ts index d21fdacee..2eab0beec 100644 --- a/src/config/pathRoutes.ts +++ b/src/config/pathRoutes.ts @@ -34,7 +34,7 @@ export const pathRoutes = { createSchema: '/organizations/schemas/create', deleteOrganization:'/organizations/delete-organizations', - viewSchema: '/organizations/schemas/view-schema', + viewSchema: '/organizations/schemas', Issuance: { issue: '/organizations/credentials/issue', schema: '/organizations/credentials/issue/schemas', diff --git a/src/pages/organizations/schemas/[schemaId].astro b/src/pages/organizations/schemas/[schemaId].astro new file mode 100644 index 000000000..e672385fc --- /dev/null +++ b/src/pages/organizations/schemas/[schemaId].astro @@ -0,0 +1,9 @@ +--- +import LayoutSidebar from "../../../app/LayoutSidebar.astro"; +import ViewSchemas from "../../../components/Resources/Schema/ViewSchema"; + +const schemaId = Astro.params.schemaId; +--- + + + diff --git a/src/pages/organizations/schemas/view-schema/[schemaId].astro b/src/pages/organizations/schemas/view-schema/[schemaId].astro deleted file mode 100644 index e12ae57d9..000000000 --- a/src/pages/organizations/schemas/view-schema/[schemaId].astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import LayoutSidebar from '../../../../app/LayoutSidebar.astro'; -import ViewSchemas from '../../../../components/Resources/Schema/ViewSchema' - -const schemaId = Astro.params.schemaId; ---- - - -