[angular-16-irish-monitor | DONE | ADDED] log service add get logs method
This commit is contained in:
parent
941db7102a
commit
837e121684
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue