From 6e0223ed5cbe1c3c1d39986679bcbca0dbf904e0 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Tue, 27 Jul 2021 00:50:08 -0400 Subject: [PATCH] Fixed api urls --- frontend/src/components/FingerprintBlock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/FingerprintBlock.js b/frontend/src/components/FingerprintBlock.js index d45508e..9c6f013 100644 --- a/frontend/src/components/FingerprintBlock.js +++ b/frontend/src/components/FingerprintBlock.js @@ -10,7 +10,7 @@ const FingerprintBlock = () => { const [display, setDisplay] = useState('none'); useEffect(() => { - axios.get(`/api/fingerprint/?hash=${hash}`).then((response) => { + axios.get(`/fingerprint/?hash=${hash}`).then((response) => { if (response.data.length !== 0) { setName(response.data[response.data.length - 1].name); } @@ -20,7 +20,7 @@ const FingerprintBlock = () => { const handleSave = (e) => { e.preventDefault(); - axios.post('/api/fingerprint/', { + axios.post('/fingerprint/', { name: e.target[0].value, hash, });