Merge branch 'master' of git.curoverse.com:arvados-workbench2 into 14503_keep_services
[arvados-workbench2.git] / src / services / vocabulary-service / vocabulary-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 { Vocabulary } from '~/models/vocabulary';
7
8 export class VocabularyService {
9     constructor(
10         private url: string
11     ) { }
12
13     getVocabulary() {
14         return Axios
15             .get<Vocabulary>(this.url)
16             .then(response => response.data);
17     }
18 }