diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/printer/+page.server.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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: { |
