21700: Install Bundler system-wide in Rails postinst
[arvados.git] / services / workbench2 / 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     async getVocabulary() {
14         const response = await Axios
15             .get<Vocabulary>(this.url);
16         return response.data;
17     }
18 }