diff --git a/utils/log/log.service.ts b/utils/log/log.service.ts index 197a6f06..c3e949c5 100644 --- a/utils/log/log.service.ts +++ b/utils/log/log.service.ts @@ -1,6 +1,7 @@ import {HttpClient} from "@angular/common/http"; import {EnvProperties} from '../properties/env-properties'; import {Injectable} from "@angular/core"; +import {Observable} from "rxjs"; export abstract class Log{ action:string; @@ -44,4 +45,7 @@ export class LogService { logOrcidLink(properties: EnvProperties, action:'added'|'removed', title: string, doi: string){ return this.http.post(properties.logServiceUrl+"logAction", new OrcidLinkLog(action, title, doi) ); } + getLogs(properties: EnvProperties):Observable{ + return this.http.get(properties.logServiceUrl+"log"); + } }