This commit is contained in:
Viktoria committed 2022-08-29 17:11:44 +02:00
1 parent e0c11fedc7
commit b52e056868
3 files changed
+17

No files matched your search

@@ -117,6 +117,17 @@ public class ProjectController {
return modelAndView;
}
@GetMapping("/{commercialStatus}")
public ModelAndView getAllProjectsWithCommercialStatus(@PathVariable("commercialStatus") int commercialStatus) {
ModelAndView modelAndView = new ModelAndView();
modelAndView.addObject("projects", projectService.getAllProjectsWithCommercialStatus(commercialStatus));
modelAndView.setViewName("all-projects");
return modelAndView;
}
@PostMapping("/{projectId}/{nameOfPosition}/applay")
public ModelAndView applayOnProject(@PathVariable("projectId") Long projectId,
@PathVariable("nameOfPosition") String nameOfPosition,