fix publication preview

This commit is contained in:
Peter Maquiran
2024-01-09 11:14:27 +01:00
parent eb790266f1
commit 86b65f3e46
11 changed files with 304 additions and 110 deletions
@@ -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