From 547d5778ade2cd3c975628c7d9603511eaa36658 Mon Sep 17 00:00:00 2001 From: MahtabBukhari Date: Sat, 18 May 2024 21:40:23 +0500 Subject: [PATCH] revert back to same url --- cypress/e2e/03_features.cy.ts | 2 +- routes/features.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/03_features.cy.ts b/cypress/e2e/03_features.cy.ts index b289c9af8..65011b43d 100644 --- a/cypress/e2e/03_features.cy.ts +++ b/cypress/e2e/03_features.cy.ts @@ -121,7 +121,7 @@ describe('Get Features for Workspace', () => { cy.upsertlogin(User).then(value => { cy.request({ method: 'GET', - url: `${HostName}/features/` + Features[0].workspace_uuid + `/workspaces`, + url: `${HostName}/features/forworkspace/` + Features[0].workspace_uuid, headers: { 'x-jwt': `${value}` }, body: {} }).then((resp) => { diff --git a/routes/features.go b/routes/features.go index b16b67197..ccd7affd1 100644 --- a/routes/features.go +++ b/routes/features.go @@ -15,7 +15,7 @@ func FeatureRoutes() chi.Router { r.Post("/", featureHandlers.CreateOrEditFeatures) r.Get("/{uuid}", featureHandlers.GetFeatureByUuid) - r.Get("/{workspace_uuid}/workspaces", featureHandlers.GetFeaturesByWorkspaceUuid) + r.Get("/forworkspace/{workspace_uuid}", featureHandlers.GetFeaturesByWorkspaceUuid) r.Get("/workspace/count/{uuid}", featureHandlers.GetWorkspaceFeaturesCount) r.Delete("/{uuid}", featureHandlers.DeleteFeature)