--- /dev/null
+package de.juplo.demo.httpresources;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+
+@Controller
+public class DefaceController
+{
+ @RequestMapping("/{path}.html")
+ public String controller(
+ @PathVariable String path,
+ @RequestParam(required = false) String origin,
+ Model model)
+ {
+ if (origin == null)
+ return "redirect:/help.html";
+
+ model.addAttribute("template", origin);
+ return path;
+ }
+}