mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
Added first release of the authentication module
This commit is contained in:
@@ -33,9 +33,9 @@ export class RequestEffects {
|
||||
let body;
|
||||
if (isNotEmpty(request.body)) {
|
||||
const serializer = new DSpaceRESTv2Serializer(NormalizedObjectFactory.getConstructor(request.body.type));
|
||||
body = JSON.stringify(serializer.serialize(request.body));
|
||||
body = serializer.serialize(request.body);
|
||||
}
|
||||
return this.restApi.request(request.method, request.href, body)
|
||||
return this.restApi.request(request.method, request.href, body, request.options)
|
||||
.map((data: DSpaceRESTV2Response) =>
|
||||
this.injector.get(request.getResponseParser()).parse(request, data))
|
||||
.do((response: RestResponse) => this.responseCache.add(request.href, response, this.EnvConfig.cache.msToLive))
|
||||
|
Reference in New Issue
Block a user