diff options
| author | Adam Soltys <[email protected]> | 2024-12-18 13:48:39 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-18 13:48:39 -0800 |
| commit | a53b9cd1e716127d43dc909b5b75729c95500e89 (patch) | |
| tree | 7d42bbd71e09115c8d43fc52cef69a12dc7a7473 /src | |
| parent | 5c37f87a58ef5d84a183cb042758a25a4b9cc40d (diff) | |
| download | coinos-ui-a53b9cd1e716127d43dc909b5b75729c95500e89.tar.gz coinos-ui-a53b9cd1e716127d43dc909b5b75729c95500e89.zip | |
fix url
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: { |
