#19 -- Fix code
This commit is contained in:
parent
1770de91c8
commit
e6f6737bf0
@ -33,7 +33,7 @@ public class GitFilteringController {
|
||||
this.filteringService = filteringService;
|
||||
}
|
||||
|
||||
@RequestMapping(value = FILTER_COMMITS, method = {RequestMethod.GET, RequestMethod.POST})
|
||||
@RequestMapping(value = FILTER_COMMITS, method = RequestMethod.GET)
|
||||
public String listCommits(
|
||||
Model model,
|
||||
@RequestParam Optional<Integer> page,
|
||||
|
@ -49,15 +49,4 @@ public class FilteringService {
|
||||
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";
|
||||
}*/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user