[angular-16-irish-monitor | DONE | ADDED] log service add get logs method

This commit is contained in:
argirok 2023-12-13 17:38:25 +02:00
parent 941db7102a
commit 837e121684
1 changed files with 4 additions and 0 deletions

View File

@ -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<any>{
return this.http.get(properties.logServiceUrl+"log");
}
}