class ProjectDetailsController {

    @PreAuthorize("hasPermission(#projectId, 'org.innovateuk.ifs.project.resource.ProjectCompositeId', 'ACCESS_PROJECT_DETAILS_SECTION')")
    @GetMapping("/{projectId}/details/start-date")
    public String viewStartDate(@PathVariable("projectId") final long projectId, Model model,
                                UserResource loggedInUser) {
        ProjectResource projectResource = projectService.getById(projectId);
        CompetitionResource competitionResource = competitionRestService.getCompetitionById(projectResource.getCompetition()).getSuccess();

        model.addAttribute("model", new ProjectDetailsStartDateViewModel(projectResource, competitionResource));
        return "project/details-start-date";
    }

}