Skip to content

Commit 5776f97

Browse files
committed
refactor(SuggestionController): move to ru.mystamps.web.feature.country package.
Addressed to #927 No functional changes.
1 parent 9efb759 commit 5776f97

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/main/java/ru/mystamps/web/config/ControllersConfig.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,5 @@ public SiteController getSiteController() {
122122
public SitemapController getSitemapController() {
123123
return new SitemapController(servicesConfig.getSeriesService());
124124
}
125-
126-
@Bean
127-
public SuggestionController getSuggestionController() {
128-
return new SuggestionController(countryService);
129-
}
130125

131126
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public CountryController countryController() {
4747
return new CountryController(countryService, seriesService);
4848
}
4949

50+
@Bean
51+
public SuggestionController suggestionController() {
52+
return new SuggestionController(countryService);
53+
}
54+
5055
}
5156

5257
@RequiredArgsConstructor

src/main/java/ru/mystamps/web/controller/SuggestionController.java renamed to src/main/java/ru/mystamps/web/feature/country/SuggestionController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* along with this program; if not, write to the Free Software
1616
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1717
*/
18-
package ru.mystamps.web.controller;
18+
package ru.mystamps.web.feature.country;
1919

2020
import org.springframework.stereotype.Controller;
2121
import org.springframework.web.bind.annotation.GetMapping;
@@ -25,7 +25,6 @@
2525

2626
import ru.mystamps.web.Url;
2727
import ru.mystamps.web.controller.converter.annotation.CurrentUser;
28-
import ru.mystamps.web.feature.country.CountryService;
2928

3029
@Controller
3130
@RequiredArgsConstructor

0 commit comments

Comments
 (0)