From 04177b093523268b17eeb628c0b1787f5f56fc80 Mon Sep 17 00:00:00 2001 From: Shubh812415 <76931004+Shubh812415@users.noreply.github.com> Date: Sun, 21 Nov 2021 21:13:02 +0530 Subject: [PATCH] Login.js --- src/components/Login.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Login.js b/src/components/Login.js index cb46dcd..a1b6ca1 100644 --- a/src/components/Login.js +++ b/src/components/Login.js @@ -8,7 +8,9 @@ const Login = (props) => { const handleSubmit = async (e) => { e.preventDefault(); - const response = await fetch("http://localhost:5000/api/auth/login", { + Lollll + +("http://localhost:5000/api/auth/login", { method: 'POST', headers: { 'Content-Type': 'application/json'