Skip to content

Commit 8cac1e5

Browse files
committed
Remove more tailing slashes (Mapping\(\s*path\s*=\s*".+)/"
1 parent 8cd959f commit 8cac1e5

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/main/java/com/jayfella/website/controller/api/ApiAvatarController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ApiAvatarController {
2727
private UserRepository userRepository;
2828
@Autowired private ImageService imageService;
2929

30-
@PostMapping(path = "/system-managed/")
30+
@PostMapping(path = "/system-managed")
3131
public ResponseEntity updateSystemManagedAvatar(ModelMap model,
3232
@RequestBody ChangeSystemManagedAvatarRequest csmaRequest) throws IOException {
3333

@@ -55,7 +55,7 @@ public ResponseEntity updateSystemManagedAvatar(ModelMap model,
5555
return updateUserAvatar(user, imageData);
5656
}
5757

58-
@PostMapping(path = "/gravatar/")
58+
@PostMapping(path = "/gravatar")
5959
public ResponseEntity updateGravatarAvatar(ModelMap model,
6060
@RequestBody ChangeGravatarAvatarRequest cgaRequest) throws IOException {
6161

@@ -69,7 +69,7 @@ public ResponseEntity updateGravatarAvatar(ModelMap model,
6969
return updateUserAvatar(user, imageData);
7070
}
7171

72-
@PostMapping(path = "/custom/")
72+
@PostMapping(path = "/custom")
7373
public ResponseEntity updateCustomAvatar(@RequestParam(value = "avatar") MultipartFile multipartFile,
7474
ModelMap model) throws IOException, InvalidImageException {
7575

src/main/java/com/jayfella/website/controller/api/ApiUserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import static com.jayfella.website.core.ServerAdvice.KEY_USER;
3131

3232
@RestController
33-
@RequestMapping(path = "/api/user/")
33+
@RequestMapping(path = "/api/user")
3434
public class ApiUserController {
3535

3636
@Autowired private SessionRepository sessionRepository;

src/main/java/com/jayfella/website/controller/http/BlogController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.springframework.web.bind.annotation.RequestMapping;
77

88
@Controller
9-
@RequestMapping(path = "/blog/", produces = MediaType.TEXT_HTML_VALUE)
9+
@RequestMapping(path = "/blog", produces = MediaType.TEXT_HTML_VALUE)
1010
public class BlogController {
1111

1212
@GetMapping()

src/main/java/com/jayfella/website/controller/http/CategoryController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import java.io.IOException;
1212

1313
@Controller
14-
@RequestMapping(path = "/category/", produces = MediaType.TEXT_HTML_VALUE)
14+
@RequestMapping(path = "/category", produces = MediaType.TEXT_HTML_VALUE)
1515
public class CategoryController {
1616

1717
@Autowired private CategoryRepository categoryRepository;

src/main/java/com/jayfella/website/controller/http/ContactUsController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.springframework.web.bind.annotation.RequestMapping;
99

1010
@Controller
11-
@RequestMapping(path = "/contact/", produces = MediaType.TEXT_HTML_VALUE)
11+
@RequestMapping(path = "/contact", produces = MediaType.TEXT_HTML_VALUE)
1212
public class ContactUsController {
1313

1414
@GetMapping

src/main/java/com/jayfella/website/controller/http/ImageController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.nio.file.Files;
2020

2121
@Controller
22-
@RequestMapping(path = "/image/", produces = MediaType.IMAGE_JPEG_VALUE)
22+
@RequestMapping(path = "/image", produces = MediaType.IMAGE_JPEG_VALUE)
2323
public class ImageController {
2424

2525
private static final Logger log = LoggerFactory.getLogger(ImageController.class);

0 commit comments

Comments
 (0)