File tree 1 file changed +3
-3
lines changed
src/main/java/ru/mystamps/web/controller
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ public void showForm(
134
134
model .addAttribute ("countries" , countries );
135
135
136
136
model .addAttribute ("years" , YEARS );
137
+ model .addAttribute ("urlSuggest" , Url .INFO_COUNTRY_SERIES_PAGE );
137
138
138
139
AddSeriesForm addSeriesForm = new AddSeriesForm ();
139
140
addSeriesForm .setPerforated (true );
@@ -427,9 +428,8 @@ public String searchSeriesByCatalog(
427
428
*/
428
429
@ ResponseBody
429
430
@ GetMapping (Url .INFO_COUNTRY_SERIES_PAGE )
430
- public String guessCountryBy (@ CurrentUser Integer currentUserId ) {
431
- String result = seriesService .guessCountryBy (currentUserId );
432
- return "{\" country\" :\" " + result + "\" }" ;
431
+ public String suggestCountryForUser (@ CurrentUser Integer currentUserId ) {
432
+ return countryService .suggestCountryForUser (currentUserId );
433
433
}
434
434
435
435
// CheckStyle: ignore LineLength for next 1 line
You can’t perform that action at this time.
0 commit comments