Moved to Angular 16
Moved to FastAPI 0.100.0
Moved to pydantic 2.0
This commit is contained in:
2023-07-22 09:19:48 +05:30
parent 8b2d15b9e1
commit 09b762d154
161 changed files with 693 additions and 753 deletions

View File

@ -1,5 +1,4 @@
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs';
import { HeaderFooter } from './header-footer';
@ -8,7 +7,7 @@ import { HeaderFooterService } from './header-footer.service';
@Injectable({
providedIn: 'root',
})
export class HeaderFooterResolver implements Resolve<HeaderFooter[]> {
export class HeaderFooterResolver {
constructor(private ser: HeaderFooterService) {}
resolve(): Observable<HeaderFooter[]> {

View File

@ -17,7 +17,10 @@ const serviceName = 'HeaderFooterService';
providedIn: 'root',
})
export class HeaderFooterService {
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
constructor(
private http: HttpClient,
private log: ErrorLoggerService,
) {}
list(): Observable<HeaderFooter[]> {
return this.http.get<HeaderFooter[]>(url).pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<