class CompetitionSetupDocumentController {

    @GetMapping("/{projectDocumentId}/edit")
    public String viewEditProjectDocument(@PathVariable(COMPETITION_ID_KEY) long competitionId,
                                          @PathVariable("projectDocumentId") long projectDocumentId,
                                          UserResource loggedInUser,
                                          Model model) {

        Redirect redirect = doViewProjectDocument(model, competitionId, loggedInUser);
        return redirect.redirect ? redirect.url : doViewEditProjectDocument(model, projectDocumentId);
    }

}