Skip to content

Commit 948fe01

Browse files
committed
refactor(country/SuggestionController): replace @controller by @RestController.
No functional changes.
1 parent 2b60868 commit 948fe01

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/ru/mystamps/web/feature/country/SuggestionController.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@
1717
*/
1818
package ru.mystamps.web.feature.country;
1919

20-
import org.springframework.stereotype.Controller;
2120
import org.springframework.web.bind.annotation.GetMapping;
22-
import org.springframework.web.bind.annotation.ResponseBody;
21+
import org.springframework.web.bind.annotation.RestController;
2322

2423
import lombok.RequiredArgsConstructor;
2524

2625
import ru.mystamps.web.Url;
2726
import ru.mystamps.web.controller.converter.annotation.CurrentUser;
2827

29-
@Controller
28+
@RestController
3029
@RequiredArgsConstructor
3130
public class SuggestionController {
3231

@@ -35,7 +34,6 @@ public class SuggestionController {
3534
/**
3635
* @author John Shkarin
3736
*/
38-
@ResponseBody
3937
@GetMapping(Url.SUGGEST_SERIES_COUNTRY)
4038
public String suggestCountryForUser(@CurrentUser Integer currentUserId) {
4139
return countryService.suggestCountryForUser(currentUserId);

0 commit comments

Comments
 (0)