Commit da24792 1 parent 6456fd9 commit da24792 Copy full SHA for da24792
File tree 7 files changed +12
-12
lines changed
7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 17
17
"web-vitals" : " ^1.1.2"
18
18
},
19
19
"scripts" : {
20
- "start" : " react-scripts start" ,
21
- "build" : " react-scripts build" ,
20
+ "start" : " react-scripts --openssl-legacy-provider start" ,
21
+ "build" : " react-scripts --openssl-legacy-provider build" ,
22
22
"test" : " react-scripts test" ,
23
23
"eject" : " react-scripts eject"
24
24
},
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const AddTours = () => {
10
10
} = useForm ( ) ;
11
11
12
12
const onSubmit = ( data ) => {
13
- fetch ( "https://lit-river-98467.herokuapp .com/addTour" , {
13
+ fetch ( "https://travele-tourism-server.onrender .com/addTour" , {
14
14
method : "POST" ,
15
15
headers : { "content-type" : "application/json" } ,
16
16
body : JSON . stringify ( data )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const AllTours = () => {
7
7
const [ isLoading , setLoading ] = useState ( true ) ;
8
8
9
9
useEffect ( ( ) => {
10
- fetch ( "https://lit-river-98467.herokuapp .com/tours" )
10
+ fetch ( "https://travele-tourism-server.onrender .com/tours" )
11
11
. then ( ( res ) => res . json ( ) )
12
12
. then ( ( data ) => {
13
13
setTours ( data ) ;
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ const TourBooking = () => {
16
16
} = useForm ( ) ;
17
17
18
18
useEffect ( ( ) => {
19
- fetch ( `https://lit-river-98467.herokuapp .com/tour/${ tourId } ` )
19
+ fetch ( `https://travele-tourism-server.onrender .com/tour/${ tourId } ` )
20
20
. then ( ( res ) => res . json ( ) )
21
21
. then ( ( data ) => setTour ( data ) ) ;
22
22
} , [ tourId ] ) ;
23
23
24
24
const onSubmit = ( data ) => {
25
25
data . tourName = tour . name ;
26
26
console . log ( data ) ;
27
- fetch ( "https://lit-river-98467.herokuapp .com/addBooking" , {
27
+ fetch ( "https://travele-tourism-server.onrender .com/addBooking" , {
28
28
method : "POST" ,
29
29
headers : { "content-type" : "application/json" } ,
30
30
body : JSON . stringify ( data )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const Tours = () => {
8
8
const [ isLoading , setLoading ] = useState ( true ) ;
9
9
10
10
useEffect ( ( ) => {
11
- fetch ( "https://lit-river-98467.herokuapp .com/tours" )
11
+ fetch ( "https://travele-tourism-server.onrender .com/tours" )
12
12
. then ( ( res ) => res . json ( ) )
13
13
. then ( ( data ) => {
14
14
setTours ( data ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const ManageBookings = () => {
7
7
const [ isLoading , setLoading ] = useState ( true ) ;
8
8
9
9
useEffect ( ( ) => {
10
- fetch ( `https://lit-river-98467.herokuapp .com/allBookings` )
10
+ fetch ( `https://travele-tourism-server.onrender .com/allBookings` )
11
11
. then ( ( res ) => res . json ( ) )
12
12
. then ( ( data ) => {
13
13
setBookings ( data ) ;
@@ -18,7 +18,7 @@ const ManageBookings = () => {
18
18
const handleDelete = ( id ) => {
19
19
const checker = window . confirm ( "Are you sure to delete?" ) ;
20
20
if ( checker ) {
21
- fetch ( `https://lit-river-98467.herokuapp .com/deleteBooking/${ id } ` , {
21
+ fetch ( `https://travele-tourism-server.onrender .com/deleteBooking/${ id } ` , {
22
22
method : "DELETE" ,
23
23
headers : { "content-type" : "application/json" }
24
24
} )
@@ -34,7 +34,7 @@ const ManageBookings = () => {
34
34
} ;
35
35
36
36
const handleUpdate = ( id ) => {
37
- const url = `https://lit-river-98467.herokuapp .com/bookings/${ id } ` ;
37
+ const url = `https://travele-tourism-server.onrender .com/bookings/${ id } ` ;
38
38
fetch ( url , {
39
39
method : "PUT" ,
40
40
headers : {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const MyBookinngs = () => {
9
9
const [ isLoading , setLoading ] = useState ( true ) ;
10
10
11
11
useEffect ( ( ) => {
12
- fetch ( `https://lit-river-98467.herokuapp .com/myBookings/${ user ?. email } ` )
12
+ fetch ( `https://travele-tourism-server.onrender .com/myBookings/${ user ?. email } ` )
13
13
. then ( ( res ) => res . json ( ) )
14
14
. then ( ( data ) => {
15
15
setBookings ( data ) ;
@@ -20,7 +20,7 @@ const MyBookinngs = () => {
20
20
const handleDelete = ( id ) => {
21
21
const checker = window . confirm ( "Are you sure to delete?" ) ;
22
22
if ( checker ) {
23
- fetch ( `https://lit-river-98467.herokuapp .com/deleteBooking/${ id } ` , {
23
+ fetch ( `https://travele-tourism-server.onrender .com/deleteBooking/${ id } ` , {
24
24
method : "DELETE" ,
25
25
headers : { "content-type" : "application/json" }
26
26
} )
You can’t perform that action at this time.
0 commit comments