mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
made some changes
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
/* import { environment } from 'src/environments/environment.prod'; */
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class HttpService {
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
constructor(private http: HttpClient) { }
|
||||
post(serviceName: string, data: any) {
|
||||
const headers = new HttpHeaders();
|
||||
const options = { headers: headers, withCredintials: false };
|
||||
const url = environment.apiURL + serviceName;
|
||||
|
||||
post(serviceName: string, data: any){
|
||||
const headers = new HttpHeaders();
|
||||
const options = { header: headers, withCredintials: false}
|
||||
|
||||
const url = environment.apiURL + serviceName;
|
||||
|
||||
/* const this.http.post(url, JSON.stringify(data), options); */
|
||||
}
|
||||
return this.http.post(url, JSON.stringify(data), options);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user