/*Check your controller function Fix it by using ,json instead of .json eg =:*/ res.status(200).json({ message: "Route is working fine" });