Skip to content

Commit

Permalink
relative requests in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rp committed Jan 10, 2025
1 parent 20f9ca1 commit 356c676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/canvas-page/canvas-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class CanvasPageComponent implements AfterViewInit {
});

try {
const response = await firstValueFrom(this.httpClient.get<number>('/papersize'));
const response = await firstValueFrom(this.httpClient.get<number>('papersize'));
this.paperSize = SIZES[response];
this.paperSizeConfigured = true;
} finally {}
Expand Down Expand Up @@ -175,7 +175,7 @@ export class CanvasPageComponent implements AfterViewInit {
fd.append('image', await this.getBlob());
fd.append('width', String(this.width));
fd.append('height', String(this.height));
const response = await firstValueFrom(this.httpClient.post('/print', fd));
const response = await firstValueFrom(this.httpClient.post('print', fd));
this.messageService.add({severity: 'success', summary: 'Success', detail: 'enjoy your label'});
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 356c676

Please sign in to comment.