17500: Allows Cypress tests to navigate using the app's router.
[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 }