Skip to content
Snippets Groups Projects
Unverified Commit 187eaae5 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #10 from FZJ-INM1-BDA/bugfix/datasetEndpoint

bugfix: fix fetch end point
parents f6a9cf0f 75768b35
No related branches found
No related tags found
No related merge requests found
......@@ -249,13 +249,8 @@ export class DatabrowserService implements OnDestroy {
private lowLevelQuery(templateName: string, parcellationName: string) {
const encodedTemplateName = encodeURIComponent(templateName)
const encodedParcellationName = encodeURIComponent(parcellationName)
return Promise.all([
fetch(`${this.constantService.backendUrl}datasets/templateName/${encodedTemplateName}`, this.constantService.getFetchOption())
.then(res => res.json()),
fetch(`${this.constantService.backendUrl}datasets/parcellationName/${encodedParcellationName}`, this.constantService.getFetchOption())
.then(res => res.json()),
])
.then(arr => [...arr[0], ...arr[1]])
return fetch(`${this.constantService.backendUrl}datasets//templateNameParcellationName/${encodedTemplateName}/${encodedParcellationName}`, this.constantService.getFetchOption())
.then(res => res.json())
/**
* remove duplicates
*/
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment