Package de.trustable.ca3s.core.web.html
Class HelpController
- java.lang.Object
-
- de.trustable.ca3s.core.web.html.HelpController
-
@Controller @RequestMapping("/app/help") public class HelpController extends Object
-
-
Constructor Summary
Constructors Constructor Description HelpController(org.springframework.core.io.Resource helpResourceEn, org.springframework.core.io.Resource helpResourceDe, org.springframework.core.io.Resource helpAdminResourceEn, org.springframework.core.io.Resource helpAdminResourceDe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringhelpAdminAsHTML(String lang)StringhelpAsHTML(String lang)StringhelpAsMD(String lang)
-
-
-
Constructor Detail
-
HelpController
public HelpController(@Value("${ca3s.help.en:classpath:help/help_en.md}") org.springframework.core.io.Resource helpResourceEn, @Value("${ca3s.help.de:classpath:help/help_de.md}") org.springframework.core.io.Resource helpResourceDe, @Value("${ca3s.help.admin.en:classpath:help/helpAdmin_en.md}") org.springframework.core.io.Resource helpAdminResourceEn, @Value("${ca3s.help.admin.de:classpath:help/helpAdmin_de.md}") org.springframework.core.io.Resource helpAdminResourceDe)
-
-
Method Detail
-
helpAsHTML
@GetMapping(value="/help-{lang}.html", produces="text/html") @ResponseBody public String helpAsHTML(@PathVariable String lang) throws IOException- Throws:
IOException
-
helpAdminAsHTML
@GetMapping(value="/helpAdmin-{lang}.html", produces="text/html") @ResponseBody public String helpAdminAsHTML(@PathVariable String lang) throws IOException- Throws:
IOException
-
helpAsMD
@GetMapping(value="/help-{lang}.md", produces="text/markdown; charset=UTF-8") @ResponseBody public String helpAsMD(@PathVariable String lang) throws IOException- Throws:
IOException
-
-