Skip to content

Commit

Permalink
Fix hardcoded URL
Browse files Browse the repository at this point in the history
  • Loading branch information
baileypumfleet committed Apr 7, 2021
1 parent 96ee624 commit 580d2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/[user]/book.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 580d2fe

Please sign in to comment.