File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
TableBookingClient/src/views/SearchView Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const updateQuery = (query: string) => {
3232 fetchRestaurants ();
3333};
3434
35- const endpoint = " https://localhost:7012/api/ Restaurant"
35+ const endpoint = " https://localhost:7012/Restaurant/GetAllRestaurants "
3636
3737const restaurants = ref <Restaurant []>([]);
3838
@@ -44,9 +44,9 @@ const fetchRestaurants = async () => {
4444 try {
4545 const getRestaurantsResponse = await axios .get <Restaurant []>(endpoint , {
4646 params: {
47- price: searchOptions .value .price ,
48- sort: searchOptions .value .sort ,
49- query: searchOptions .value .query ,
47+ // price: searchOptions.value.price,
48+ // sort: searchOptions.value.sort,
49+ // query: searchOptions.value.query,
5050 },
5151 });
5252 restaurants .value .push (... getRestaurantsResponse .data );
You can’t perform that action at this time.
0 commit comments