diff --git a/src/app/gene/services/gene.service.ts b/src/app/gene/services/gene.service.ts index a8445d07..13325969 100644 --- a/src/app/gene/services/gene.service.ts +++ b/src/app/gene/services/gene.service.ts @@ -77,7 +77,8 @@ export class GeneService extends HttpService { // fetches source specific details for the given gene getGeneDetails(gene: string, source: string): Observable { const request = this._appConfig.getServerRequest(source, 'geneLinks'); - const makeUrl = (url: string) => url + gene + '/json'; + //TODO: make this more configurable via template substitution + const makeUrl = (url: string) => url + gene; return this._makeHttpRequest(request, {}, makeUrl); } diff --git a/src/app/gene/services/region.service.ts b/src/app/gene/services/region.service.ts index d55ca71e..692bceb2 100644 --- a/src/app/gene/services/region.service.ts +++ b/src/app/gene/services/region.service.ts @@ -64,7 +64,8 @@ export class RegionService extends HttpService { // fetches source specific details for the given region getRegionDetails(chromosome: string, start: number, end: number, source: string): Observable { const request = this._appConfig.getServerRequest(source, 'regionLinks'); - const makeUrl = (url: string) => url + chromosome + '&start=' + start + '&end=' + end ; + //TODO: make this more configurable via template-based substitution + const makeUrl = (url: string) => url + chromosome + ':' + start + '-' + end ; return this._makeHttpRequest(request, {}, makeUrl); }