Merge branch 'master' into 13853-collection-view-info-card
[arvados-workbench2.git] / src / services / services.ts
index 88f6ffaefd46527571d4a0181364a6d0663c03fa..e0d15cc40a40b855e599a76d151c70c4ef5a17cb 100644 (file)
@@ -2,11 +2,15 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import AuthService from "./auth-service/auth-service";
-import GroupsService from "./groups-service/groups-service";
-import { serverApi } from "../common/api/server-api";
-import ProjectService from "./project-service/project-service";
+import { AuthService } from "./auth-service/auth-service";
+import { GroupsService } from "./groups-service/groups-service";
+import { authClient, apiClient } from "../common/api/server-api";
+import { ProjectService } from "./project-service/project-service";
+import { LinkService } from "./link-service/link-service";
+import { FavoriteService } from "./favorite-service/favorite-service";
 
-export const authService = new AuthService(serverApi);
-export const groupsService = new GroupsService(serverApi);
-export const projectService = new ProjectService(serverApi);
+export const authService = new AuthService(authClient, apiClient);
+export const groupsService = new GroupsService(apiClient);
+export const projectService = new ProjectService(apiClient);
+export const linkService = new LinkService(apiClient);
+export const favoriteService = new FavoriteService(linkService, groupsService);
\ No newline at end of file