mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Clean up code.
This commit is contained in:
parent
607418dcf7
commit
ea1349c518
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user