feat(web): support context path deployments
This commit is contained in:
1 parent
45a60819ca
commit
d01ffb0d55
18 files changed
+248
-43
No files matched your search
@@ -5,6 +5,7 @@ import { Button } from "@/components/ui/button";
|
||||
import PasswordInput from "@/components/ui/PasswordInput.vue";
|
||||
import { Lock, Loader2, ShieldCheck } from "@lucide/vue";
|
||||
import AppLogo from "@/components/icons/AppLogo.vue";
|
||||
import { apiUrl } from "@/lib/webPath";
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -30,7 +31,7 @@ async function submit() {
|
||||
loading.value = true;
|
||||
error.value = "";
|
||||
try {
|
||||
const url = props.setupMode ? "/api/auth/setup" : "/api/auth/login";
|
||||
const url = apiUrl(props.setupMode ? "/api/auth/setup" : "/api/auth/login");
|
||||
const res = await fetch(url, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
|
||||
Reference in new issue
Block a user