Fixed api urls

This commit is contained in:
z0ccc 2021-07-27 00:50:08 -04:00
parent cb1a866511
commit 6e0223ed5c

View file

@ -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,
});