Merge branch 'master' into 13883-arrow-animation-is-not-working-after-loading
[arvados-workbench2.git] / src / services / services.ts
index 47a24b344aaa7d43c0f257d3c47aabd526995368..a08ed3cb3de4bbb0a89caa858cd5c5b3163c3551 100644 (file)
@@ -2,10 +2,15 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import AuthService from "./auth-service/auth-service";
-import ProjectService from "./project-service/project-service";
-import CollectionService from "./collection-service/collection-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 projectService = new ProjectService();
-export const collectionService = new CollectionService();
+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);