@@ -0,0 +1,540 @@
+package com.pollistics.controllers;%0A%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0A%0A@Controller%0Apublic class PollController %7B%0A%0A    @GetMapping(value = %22/polls/%7BpollId%7D%22)%0A    public String greeting(@PathVariable String pollId, Model model) %7B%0A        model.addAttribute(%22pollId%22, pollId);%0A        return %22poll%22;%0A    %7D%0A%7D%0A

Add Controller