remove the rest/ path from endpoints

This commit is contained in:
Mohamed Karray
2018-10-01 17:22:03 +02:00
parent cd621ded81
commit b33b72aa80
20 changed files with 126 additions and 114 deletions

View File

@@ -9,7 +9,7 @@ describe("create url", () => {
});
it("should add prefix for api", () => {
expect(createUrl("/users")).toBe("/api/rest/v2/users");
expect(createUrl("users")).toBe("/api/rest/v2/users");
expect(createUrl("/users")).toBe("/api/v2/users");
expect(createUrl("users")).toBe("/api/v2/users");
});
});