psuedo:
@RequestMapping("/news/feed/featurednews/{feedname}")
public List<NewsModel> getFeed(String feedname, @RequestParam("start", optional) Integer startIndex) {
return feedService.getFeaturedNewsByName(feedname);
}
@RequestMapping("/news/{newsPageName}")
public String goToNewsPage(Model m, String newsPageName) {
m.addAttribute("stories", feedService.getFeaturedNewsByName(newsPageName));
return getGenericNewsViewName();
}
as you can see I'm reusing the service that gets the feed, is that the best I can do here, or can I reuse the getFeed() method?