File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/ru/mystamps/web/feature/country Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
package ru .mystamps .web .feature .country ;
19
19
20
- import org .springframework .stereotype .Controller ;
21
20
import org .springframework .web .bind .annotation .GetMapping ;
22
- import org .springframework .web .bind .annotation .ResponseBody ;
21
+ import org .springframework .web .bind .annotation .RestController ;
23
22
24
23
import lombok .RequiredArgsConstructor ;
25
24
26
25
import ru .mystamps .web .Url ;
27
26
import ru .mystamps .web .controller .converter .annotation .CurrentUser ;
28
27
29
- @ Controller
28
+ @ RestController
30
29
@ RequiredArgsConstructor
31
30
public class SuggestionController {
32
31
@@ -35,7 +34,6 @@ public class SuggestionController {
35
34
/**
36
35
* @author John Shkarin
37
36
*/
38
- @ ResponseBody
39
37
@ GetMapping (Url .SUGGEST_SERIES_COUNTRY )
40
38
public String suggestCountryForUser (@ CurrentUser Integer currentUserId ) {
41
39
return countryService .suggestCountryForUser (currentUserId );
You can’t perform that action at this time.
0 commit comments