From 9f9072365214fbf9d19f0359df90bbf2ab7ae3c9 Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Wed, 12 Dec 2018 17:45:33 +0100 Subject: [PATCH] Create FileViewersConfigService Feature #13540 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- .../file-viewers-config-service.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/services/file-viewers-config-service/file-viewers-config-service.ts diff --git a/src/services/file-viewers-config-service/file-viewers-config-service.ts b/src/services/file-viewers-config-service/file-viewers-config-service.ts new file mode 100644 index 0000000000..4029225055 --- /dev/null +++ b/src/services/file-viewers-config-service/file-viewers-config-service.ts @@ -0,0 +1,18 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + +import Axios from 'axios'; +import { FileViewerList } from '~/models/file-viewers-config'; + +export class FileViewersConfigService { + constructor( + private url: string + ) { } + + get() { + return Axios + .get(this.url) + .then(response => response.data); + } +} -- 2.30.2