Merge Angular 16 Irish Monitor to develop #33
|
@ -1,6 +1,7 @@
|
||||||
import {HttpClient} from "@angular/common/http";
|
import {HttpClient} from "@angular/common/http";
|
||||||
import {EnvProperties} from '../properties/env-properties';
|
import {EnvProperties} from '../properties/env-properties';
|
||||||
import {Injectable} from "@angular/core";
|
import {Injectable} from "@angular/core";
|
||||||
|
import {Observable} from "rxjs";
|
||||||
|
|
||||||
export abstract class Log{
|
export abstract class Log{
|
||||||
action:string;
|
action:string;
|
||||||
|
@ -44,4 +45,7 @@ export class LogService {
|
||||||
logOrcidLink(properties: EnvProperties, action:'added'|'removed', title: string, doi: string){
|
logOrcidLink(properties: EnvProperties, action:'added'|'removed', title: string, doi: string){
|
||||||
return this.http.post(properties.logServiceUrl+"logAction", new OrcidLinkLog(action, title, doi) );
|
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