Merge branch 'master' into 13853-collection-view-info-card
[arvados-workbench2.git] / src / services / services.ts
index 1e9a74dd3fbf3b22d50c4ea8faec96f5a8452cff..e0d15cc40a40b855e599a76d151c70c4ef5a17cb 100644 (file)
@@ -2,13 +2,15 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import AuthService from "./auth-service/auth-service";
-import CollectionService from "./collection-service/collection-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();
-export const collectionService = new CollectionService();
-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