Merge branch '19421-restore-old-redirect-key' into main. Closes #19421
[arvados.git] / src / services / repositories-service / repositories-service.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { AxiosInstance } from "axios";
6 import { CommonResourceService } from "services/common-service/common-resource-service";
7 import { RepositoryResource } from 'models/repositories';
8 import { ApiActions } from 'services/api/api-actions';
9
10  export class RepositoriesService extends CommonResourceService<RepositoryResource> {
11     constructor(serverApi: AxiosInstance, actions: ApiActions) {
12         super(serverApi, "repositories", actions);
13     }
14
15      getAllPermissions() {
16         return CommonResourceService.defaultResponse(
17             this.serverApi
18                 .get('repositories/get_all_permissions'),
19             this.actions
20         );
21     }
22