aboutsummaryrefslogtreecommitdiff
path: root/part2/phonebook
diff options
context:
space:
mode:
authorIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-05-10 22:12:50 -0400
committerIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-05-10 22:12:50 -0400
commitbb582849c2301c511d54618decde42a8102928d6 (patch)
tree3fb51fcf0e7e0ccc66d1365ad061079318f90389 /part2/phonebook
parent0adbbd60d72b549adbbb45e9f9cf9e4f56cc18e7 (diff)
ex3.11 absolute to relative paths to allow work on production
Diffstat (limited to 'part2/phonebook')
-rw-r--r--part2/phonebook/src/services/persons.js2
1 files changed, 1 insertions, 1 deletions
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)