aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-18 13:48:39 -0800
committerAdam Soltys <[email protected]>2024-12-18 13:48:39 -0800
commit762f5ee31e4938f610551d8d50596a0dd2f53b95 (patch)
tree7d42bbd71e09115c8d43fc52cef69a12dc7a7473 /src
parentacdd5cfe46903da7279534d81707262febe8c2f5 (diff)
downloadcoinos-ui-762f5ee31e4938f610551d8d50596a0dd2f53b95.tar.gz
coinos-ui-762f5ee31e4938f610551d8d50596a0dd2f53b95.zip
fix url
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/printer/+page.server.ts3
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: {