Fix hardcoded URL
This commit is contained in:
		
							parent
							
								
									96ee624bb7
								
							
						
					
					
						commit
						580d2fefb0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -11,7 +11,7 @@ export default function Book(props) { | ||||||
|     const bookingHandler = event => { |     const bookingHandler = event => { | ||||||
|         event.preventDefault() |         event.preventDefault() | ||||||
|         const res = fetch( |         const res = fetch( | ||||||
|             'http://localhost:3000/api/book/' + user, |             '/api/book/' + user, | ||||||
|             { |             { | ||||||
|                 body: JSON.stringify({ |                 body: JSON.stringify({ | ||||||
|                     start: dayjs(date).format(), |                     start: dayjs(date).format(), | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Bailey Pumfleet
						Bailey Pumfleet