diff --git a/src/main/java/com/example/clientproject/web/restControllers/ShopSearch.java b/src/main/java/com/example/clientproject/web/restControllers/ShopSearch.java new file mode 100644 index 0000000000000000000000000000000000000000..be68a821599f106ed96ac9c1542677deb899a3b9 --- /dev/null +++ b/src/main/java/com/example/clientproject/web/restControllers/ShopSearch.java @@ -0,0 +1,22 @@ +package com.example.clientproject.web.restControllers; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@RestController +public class ShopSearch { + @GetMapping("/shop/search") + public String searchShops(@RequestParam(value = "q", required = false) String query, + @RequestParam(value = "p", required = false) Integer page, + @RequestParam(value = "t", required = false) List<Integer> tags){ + System.out.println(tags); + System.out.println(query); + System.out.println(page); + + return "here"; + + } +} diff --git a/src/main/resources/static/imgs/uploaded/02b3324f_113c_4c98_8ad6_7f1cf28f74c9.jpg b/src/main/resources/static/imgs/uploaded/02b3324f_113c_4c98_8ad6_7f1cf28f74c9.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7ff5ef91293d6692910338be0f6b54dd16674c6a Binary files /dev/null and b/src/main/resources/static/imgs/uploaded/02b3324f_113c_4c98_8ad6_7f1cf28f74c9.jpg differ diff --git a/src/main/resources/static/imgs/uploaded/1eab1fb2_7744_4eb6_9505_8a1e9b59981b.jpg b/src/main/resources/static/imgs/uploaded/1eab1fb2_7744_4eb6_9505_8a1e9b59981b.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7ff5ef91293d6692910338be0f6b54dd16674c6a Binary files /dev/null and b/src/main/resources/static/imgs/uploaded/1eab1fb2_7744_4eb6_9505_8a1e9b59981b.jpg differ diff --git a/src/main/resources/static/imgs/uploaded/7615374a_c54e_4854_ad96_14b719c5af9c.jpg b/src/main/resources/static/imgs/uploaded/7615374a_c54e_4854_ad96_14b719c5af9c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7ff5ef91293d6692910338be0f6b54dd16674c6a Binary files /dev/null and b/src/main/resources/static/imgs/uploaded/7615374a_c54e_4854_ad96_14b719c5af9c.jpg differ diff --git a/src/main/resources/static/imgs/uploaded/8d96f724_c612_4da0_9ab0_26a0ea2ad161.jpg b/src/main/resources/static/imgs/uploaded/8d96f724_c612_4da0_9ab0_26a0ea2ad161.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7ff5ef91293d6692910338be0f6b54dd16674c6a Binary files /dev/null and b/src/main/resources/static/imgs/uploaded/8d96f724_c612_4da0_9ab0_26a0ea2ad161.jpg differ diff --git a/src/main/resources/templates/shopDetails.html b/src/main/resources/templates/shopDetails.html index 95a7c9903d83b2a3686d7e8be650d4faf9abc05a..409ff6da2368c7e5ef2436183273faa118e211fa 100644 --- a/src/main/resources/templates/shopDetails.html +++ b/src/main/resources/templates/shopDetails.html @@ -75,7 +75,7 @@ </div> </div> - <div th:if="${@loadSocials.getSocial(socials, 'facebook' != '')}" class="control"> + <div th:if="${@loadSocials.getSocial(socials, 'facebook') != ''}" class="control"> <div class="tags has-addons"> <span class="tag is-large is-grey"> <span class="icon-text">