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;

View File

@@ -0,0 +1,4 @@
export const environment = {
production: true,
apiUrl: 'https://3d-fab.ch/api'
};

View File

@@ -0,0 +1,4 @@
export const environment = {
production: false,
apiUrl: 'http://localhost:8000'
};

View File

@@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex, nofollow">
<title>Frontend</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">