Skip to content

Commit 17957f4

Browse files
author
Paul Frank
committed
FE endpoint naprawa raz dwa trzy
1 parent 7c011ef commit 17957f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TableBookingClient/src/views/SearchView/SearchView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
3737
const 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);

0 commit comments

Comments
 (0)