From bb582849c2301c511d54618decde42a8102928d6 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Wed, 10 May 2023 22:12:50 -0400 Subject: ex3.11 absolute to relative paths to allow work on production --- part2/phonebook/src/services/persons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part2/phonebook/src/services/persons.js b/part2/phonebook/src/services/persons.js index d9bdbe5..9e7d2ba 100644 --- a/part2/phonebook/src/services/persons.js +++ b/part2/phonebook/src/services/persons.js @@ -1,5 +1,5 @@ import axios from 'axios' -const baseUrl = 'http://localhost:3001/api/persons' +const baseUrl = '/api/persons' const getAll = () => { return axios.get(baseUrl) -- cgit v1.2.3