fix login

deskripsi:
- fix api login
This commit is contained in:
2025-02-04 12:09:21 +08:00
parent 51105a24c8
commit 46d49992b4
6 changed files with 67 additions and 63 deletions

View File

@@ -0,0 +1,13 @@
export { apiFetchLogin };
const apiFetchLogin = async ({ nomor }: { nomor: string }) => {
const respone = await fetch("/api/auth/login", {
method: "POST",
body: JSON.stringify({ nomor: nomor }),
headers: {
"Content-Type": "application/json",
},
});
return await respone.json().catch(() => null);
};