1 package de.juplo.demo.httpresources;
3 import org.springframework.stereotype.Controller;
4 import org.springframework.ui.Model;
5 import org.springframework.web.bind.annotation.PathVariable;
6 import org.springframework.web.bind.annotation.RequestMapping;
7 import org.springframework.web.bind.annotation.RequestParam;
11 public class DefaceController
13 @RequestMapping("/{path}.html")
14 public String controller(
15 @PathVariable String path,
16 @RequestParam(required = false) String origin,
20 return "redirect:/help.html";
22 model.addAttribute("template", origin);