From fd1332a3df191577e91c6d846a8b5db1747099fd Mon Sep 17 00:00:00 2001
From: Zach Berwaldt <zberwaldt@tutamail.com>
Date: Fri, 15 Mar 2024 22:00:10 -0400
Subject: cleanup

---
 fe/src/lib/LoginForm.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'fe/src/lib/LoginForm.svelte')

diff --git a/fe/src/lib/LoginForm.svelte b/fe/src/lib/LoginForm.svelte
index 8c3c288..cf5febf 100644
--- a/fe/src/lib/LoginForm.svelte
+++ b/fe/src/lib/LoginForm.svelte
@@ -1,6 +1,7 @@
 <script lang="ts">
   import { token, user, preferences } from "../stores/auth";
   import Card from "./Card.svelte";
+  import { apiURL } from "../utils";
 
   let credentials: CredentialObject = {
     username: "",
@@ -28,7 +29,7 @@
     }
     const auth = prepareCredentials(credentials);
 
-    const response = await fetch("http://localhost:8080/api/v1/auth", {
+    const response = await fetch(apiURL("auth"), {
       method: "POST",
       headers: {
         Authorization: `Basic ${auth}`,
-- 
cgit v1.1

