Fixed api urls
This commit is contained in:
parent
cb1a866511
commit
6e0223ed5c
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue