From 4fbd330a17cf388c82bfc1dbfe1122593cbdc1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Fri, 26 May 2023 19:09:13 -0600 Subject: Using Axios to send HTTP requests. Defining API and method GET to retrieve all to dos. --- src/api/axios_config.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/api/axios_config.js (limited to 'src/api/axios_config.js') diff --git a/src/api/axios_config.js b/src/api/axios_config.js new file mode 100644 index 0000000..1ecde93 --- /dev/null +++ b/src/api/axios_config.js @@ -0,0 +1,8 @@ +import axios from "axios"; + +export default axios.create({ + baseURL: "http://localhost:9090/", + headers: { + "Content-Type": "application/json", + }, +}); -- cgit v1.2.3