From a53b9cd1e716127d43dc909b5b75729c95500e89 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 18 Dec 2024 13:48:39 -0800 Subject: fix url --- src/routes/(app)/printer/+page.server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/routes/(app)/printer/+page.server.ts b/src/routes/(app)/printer/+page.server.ts index e9553f33..7a004848 100644 --- a/src/routes/(app)/printer/+page.server.ts +++ b/src/routes/(app)/printer/+page.server.ts @@ -1,10 +1,11 @@ +import { PUBLIC_COINOS_URL } from "$env/static/public"; import { fd } from "$lib/utils"; import { hex } from "@scure/base"; export const actions = { default: async ({ fetch, request }) => { const body = await fd(request); - const res = await fetch("/api/printer", { + const res = await fetch(`${PUBLIC_COINOS_URL}/printer`, { method: "POST", body: JSON.stringify(body), headers: { -- cgit v1.2.3