mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
import { of as observableOf } from 'rxjs';
|
|
import { hasValue } from '../empty.util';
|
|
|
|
export class HALEndpointServiceStub {
|
|
|
|
constructor(private url: string) {}
|
|
getEndpoint(path: string, startHref?: string) {
|
|
if (hasValue(startHref)) {
|
|
return observableOf(startHref + '/' + path);
|
|
}
|
|
return observableOf(this.url + '/' + path);
|
|
}
|
|
}
|