Skip to content
Snippets Groups Projects
Commit 27a6d492 authored by Steve Reis's avatar Steve Reis
Browse files

Merge branch 'develop' into 'main'

Fix galaxy feature

See merge request sibmip/gateway!28
parents fca79819 5274700b
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,14 @@ export default class ExaremeService implements IEngineService {
.pipe(map((response) => response.data));
}
getPassthrough(suffix: string): string | Observable<string> {
const path = this.options.baseurl + suffix;
return this.httpService
.get<string>(path, { params: this.req.query })
.pipe(map((response) => response.data));
}
// UTILITIES
private flattenGroups = (data: Hierarchy): Group[] => {
let groups: Group[] = [dataToGroup(data)];
......
......@@ -69,4 +69,9 @@ export class EngineController {
logout(): void {
this.engineService.logout();
}
@Get('galaxy')
galaxy(): Observable<string> | string {
return this.engineService.getPassthrough?.('galaxy');
}
}
......@@ -61,4 +61,6 @@ export interface IEngineService {
editActiveUser(): Observable<string> | string;
logout(): void;
getPassthrough?(suffix: string): Observable<string> | string;
}
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