Audit log,resolved merge conflict
[portal.git] / portal-FE-common / src / app / shared / services / auditLog / audit-log.service.ts
1 import { Injectable } from '@angular/core';
2 import { Observable } from 'rxjs';
3 import { environment } from 'src/environments/environment';
4 import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
5
6 @Injectable({
7   providedIn: 'root'
8 })
9 export class AuditLogService {
10
11   constructor(private api: HttpClient) { }
12
13   storeAudit(affectedAppId:any,type:any,comment:any): Observable<any> {
14     var url = environment.api.storeAuditLog+'?affectedAppId=' + affectedAppId;
15                 if(type!=''){
16                         url= url+'&type='+type;
17                 }
18                 if(comment!=''){
19                         url= url+'&comment='+comment;
20                 }
21     return this.api.get(url);
22   }
23 }