feat(web) back-end routing
All checks were successful
Build, Test and Deploy / test-backend (push) Successful in 15s
Build, Test and Deploy / build-and-push (push) Successful in 26s
Build, Test and Deploy / deploy (push) Successful in 5s

This commit is contained in:
2026-01-31 17:41:47 +01:00
parent 179ba2b85c
commit 85d7315e30
6 changed files with 28 additions and 4 deletions

View File

@@ -20,6 +20,8 @@ interface QuoteResponse {
};
}
import { environment } from '../../environments/environment';
@Component({
selector: 'app-calculator',
standalone: true,
@@ -61,7 +63,7 @@ export class CalculatorComponent {
this.error = '';
this.results = null;
this.http.post<QuoteResponse>('http://localhost:8000/calculate/stl', formData)
this.http.post<QuoteResponse>(`${environment.apiUrl}/calculate/stl`, formData)
.subscribe({
next: res => {
this.results = res;