Skip to content

Commit

Permalink
revert back to same url
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtabBukhari committed May 18, 2024
1 parent 528222d commit 547d577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/03_features.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion routes/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 547d577

Please sign in to comment.