blob: 0504fb9f6a14b39ff5da56ee276e13b2c7d7884a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class AuditLogService {
constructor(private api: HttpClient) { }
storeAudit(affectedAppId:any,type:any,comment:any): Observable<any> {
var url = environment.api.storeAuditLog+'?affectedAppId=' + affectedAppId;
if(type!=''){
url= url+'&type='+type;
}
if(comment!=''){
url= url+'&comment='+comment;
}
return this.api.get(url);
}
}
|