#19 -- Fix code

This commit is contained in:
Anton Romanov 2021-04-09 14:58:24 +04:00
parent 1770de91c8
commit e6f6737bf0
2 changed files with 1 additions and 12 deletions

View File

@ -33,7 +33,7 @@ public class GitFilteringController {
this.filteringService = filteringService; this.filteringService = filteringService;
} }
@RequestMapping(value = FILTER_COMMITS, method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = FILTER_COMMITS, method = RequestMethod.GET)
public String listCommits( public String listCommits(
Model model, Model model,
@RequestParam Optional<Integer> page, @RequestParam Optional<Integer> page,

View File

@ -49,15 +49,4 @@ public class FilteringService {
author author
); );
} }
/* @PostMapping("/sendFilter")
public String sendFilter(@ModelAttribute FilterForm filterForm, Model model) throws GitAPIException, IOException {
List<Commit> list = gitRepositoryService.getCommits(filterForm.getUrl(), filterForm.getBranch());
model.addAttribute("commits", list);
if (filterForm.getFilter() == null || filterForm.getFilter().isEmpty()) {
model.addAttribute("error", "'Строка' не должно быть пустым");
return "filtering";
}
return "resultRepo";
}*/
} }