We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7406a6e commit 0de564aCopy full SHA for 0de564a
pages/login/+Page.client.ts
@@ -29,15 +29,15 @@ function LoginForm() {
29
30
const submitForm = async () => {
31
try {
32
- const res = await fetch("/api/login", {
+ const res = await fetch("http://Localhost:5500/v2/login", {
33
method: "POST",
34
headers: { "Content-Type": "application/json" },
35
body: JSON.stringify(state),
36
});
37
38
if (!res.ok) {
39
if (res.status === 502) {
40
- setError("The Sparrow server is not available");
+ setError("The server is not available");
41
} else {
42
setError("Invalid credentials");
43
}
0 commit comments