Browse Source

list contracts

Stefan McShane 3 years ago
parent
commit
4571390184
2 changed files with 1 additions and 3 deletions
  1. 1 1
      api/server/handlers/api_contract/list.go
  2. 0 2
      api/server/router/project.go

+ 1 - 1
api/server/handlers/api_contract/list.go

@@ -54,6 +54,6 @@ func (c *APIContractRevisionListHandler) ServeHTTP(w http.ResponseWriter, r *htt
 		return
 	}
 
-	w.WriteHeader(http.StatusCreated)
+	w.WriteHeader(http.StatusOK)
 	c.WriteResult(w, r, revisions)
 }

+ 0 - 2
api/server/router/project.go

@@ -1274,7 +1274,6 @@ func getProjectRoutes(
 			Scopes: []types.PermissionScope{
 				types.UserScope,
 				types.ProjectScope,
-				types.APIContractRevisionScope,
 			},
 		},
 	)
@@ -1303,7 +1302,6 @@ func getProjectRoutes(
 			Scopes: []types.PermissionScope{
 				types.UserScope,
 				types.ProjectScope,
-				types.APIContractRevisionScope,
 			},
 		},
 	)