Fix hardcoded URL

This commit is contained in:
Bailey Pumfleet committed 2021-04-07 21:41:08 +01:00
1 parent 96ee624bb7
commit 580d2fefb0
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@ export default function Book(props) {
const bookingHandler = event => {
event.preventDefault()
const res = fetch(
'http://localhost:3000/api/book/' + user,
'/api/book/' + user,
{
body: JSON.stringify({
start: dayjs(date).format(),