Skip to content

Commit

Permalink
Merge pull request #1197 from adi-3008/develop
Browse files Browse the repository at this point in the history
remove unnecessary ResponseBody annotation
  • Loading branch information
mozzy11 authored Jul 23, 2024
2 parents c6c5c59 + 6870b26 commit 5073df9
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
Expand All @@ -18,7 +17,6 @@ public class DBImageController {
private ImageService imageService;

@GetMapping(value = "/dbImage/siteInformation/{imageName}")
@ResponseBody
public IdValuePair getImage(@PathVariable String imageName) {
Optional<Image> image = imageService.getImageBySiteInfoName(imageName);
if (image.isEmpty()) {
Expand Down

0 comments on commit 5073df9

Please sign in to comment.