From 82d1cf2c716d16f783d9f604c0f3bfb769e10205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=20K=C3=BCng?= Date: Sat, 31 Jan 2026 17:46:35 +0100 Subject: [PATCH] feat(web) back-end routing --- frontend/src/app/print.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/print.service.ts b/frontend/src/app/print.service.ts index 4103880..36e11a0 100644 --- a/frontend/src/app/print.service.ts +++ b/frontend/src/app/print.service.ts @@ -1,13 +1,14 @@ import { Injectable, inject } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; +import { environment } from '../environments/environment'; @Injectable({ providedIn: 'root' }) export class PrintService { private http = inject(HttpClient); - private apiUrl = 'http://127.0.0.1:8000'; // Should be in environment + private apiUrl = environment.apiUrl; calculateQuote(file: File, params?: any): Observable { const formData = new FormData();