From 8074b7d0424c297064f53425fa1a0202d69f3999 Mon Sep 17 00:00:00 2001 From: carraya Date: Sat, 16 Apr 2022 22:16:52 -0400 Subject: [PATCH] fix(client): fixed api url --- client/src/common/components/Auth.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/common/components/Auth.js b/client/src/common/components/Auth.js index 4e220fe..ded1042 100644 --- a/client/src/common/components/Auth.js +++ b/client/src/common/components/Auth.js @@ -21,7 +21,10 @@ export default function AuthComponent() { }), }; - const response = await fetch("localhost:8000/api/token/", requestOptions); + const response = await fetch( + "http://localhost:8000/api/token/", + requestOptions + ); const data = await response.json(); console.log(data);