Upload 2.17

This commit is contained in:
AndrewTrieu
2023-03-23 17:21:52 +02:00
parent 19573d026d
commit 4b4ec342b4
7 changed files with 73 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
import axios from "axios";
const baseUrl = "http://localhost:3001/persons";
const getAll = () => {
const request = axios.get(baseUrl);
return request.then((response) => response.data);