mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix publication preview
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { HttpContext, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { tap, shareReplay, catchError } from "rxjs/operators";
|
||||
import { Observable, of } from "rxjs";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -15,9 +13,8 @@ export class HttpServiceService {
|
||||
return this.http.put<T>(url, body, options as any)
|
||||
}
|
||||
|
||||
|
||||
post<T>(url: string, body: any | null, options: Options) {
|
||||
return this.http.post<T>(url, body, options as any)
|
||||
post<T>(url: string, body, option = null) {
|
||||
return this.http.post<T>(url, body, option)
|
||||
}
|
||||
|
||||
get<T>(url: string, options: Options) {
|
||||
@@ -26,7 +23,6 @@ export class HttpServiceService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
interface Options {
|
||||
headers?: HttpHeaders
|
||||
params?: HttpParams
|
||||
|
||||
Reference in New Issue
Block a user