- add dataset-detail.component

- add named router links
This commit is contained in:
Arno Kaimbacher 2021-12-10 16:43:02 +01:00
parent 81153061ac
commit 480362e5b7
8 changed files with 133 additions and 8 deletions

View file

@ -159,6 +159,16 @@ class DatasetService {
// this.messageService.add('HeroService: fetched heroes');
return documents;
}
public getDataset(id: number): Observable<DbDataset> {
const host = "https:" + VUE_APP_PORTAL;
const path = "/api/dataset/" + id;
const base = host + path;
const dataset = api.get<DbDataset>(base);
// this.messageService.add('HeroService: fetched heroes');
return dataset;
}
}
export default new DatasetService();