Merge branch '19421-restore-old-redirect-key' into main. Closes #19421
[arvados.git] / src / services / file-viewers-config-service / file-viewers-config-service.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import Axios from 'axios';
6 import { FileViewerList } from 'models/file-viewers-config';
7
8 export class FileViewersConfigService {
9     constructor(
10         private url: string
11     ) { }
12
13     get() {
14         return Axios
15             .get<FileViewerList>(this.url)
16             .then(response => response.data);
17     }
18 }