Clean up code.

This commit is contained in:
Paulo Gustavo Veiga 2022-02-12 00:33:50 -08:00
parent 607418dcf7
commit ea1349c518

View File

@ -18,32 +18,14 @@
package com.wisemapping.webmvc; package com.wisemapping.webmvc;
import com.wisemapping.service.MindmapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
@Controller @Controller
public class PublicPagesController { public class PublicPagesController {
@Qualifier("mindmapService")
@Autowired
private MindmapService mindmapService;
@RequestMapping(value = "keyboard")
public String newsPage() {
return "keyboard";
}
@RequestMapping(value = "home") @RequestMapping(value = "home")
public String home() { public String home() {
return "homepage"; return "homepage";
} }
@RequestMapping(value = "iframeWrapper")
public ModelAndView showIframePage(@RequestParam(required = true) String url) {
return new ModelAndView("iframeWrapper", "url", url);
}
} }