ff2de1596443e14f8b818407f1632ba095c3880b
[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 }