From 3c4abd0c7b423afcc08d958b505ba7af1e8aba67 Mon Sep 17 00:00:00 2001 From: xiaoming <31494286+gitdq1016@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:18:23 +0800 Subject: [PATCH] remove some check --- src/main/java/com/dl/officialsite/login/filter/LoginFilter.java | 2 ++ .../java/com/dl/officialsite/sponsor/SponsorController.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java b/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java index 9090a976..65ae66c2 100644 --- a/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java +++ b/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java @@ -69,6 +69,8 @@ public class LoginFilter extends OncePerRequestFilter { add("/hire/all"); add("/hire/detail"); add("/share/search"); + add("/share/query"); + add("/sponsors/all"); }} ; private Set noAddrCheckApis = new HashSet() {{ diff --git a/src/main/java/com/dl/officialsite/sponsor/SponsorController.java b/src/main/java/com/dl/officialsite/sponsor/SponsorController.java index 81a101b9..a998ca2c 100644 --- a/src/main/java/com/dl/officialsite/sponsor/SponsorController.java +++ b/src/main/java/com/dl/officialsite/sponsor/SponsorController.java @@ -27,7 +27,7 @@ public BaseResponse create(@RequestParam String address, @RequestBody Sponsor sp } @GetMapping("/all") - public BaseResponse all(@RequestParam String address) { + public BaseResponse all() { List sponsors = sponsorRepository.findAll(); return BaseResponse.successWithData(sponsors); }