2023-01-27 18:23:40 +00:00
|
|
|
package stirling.software.SPDF.controller;
|
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.ui.Model;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
public class PdfController {
|
|
|
|
|
|
2023-02-11 14:27:15 +00:00
|
|
|
private static final Logger logger = LoggerFactory.getLogger(PdfController.class);
|
2023-01-27 18:23:40 +00:00
|
|
|
|
2023-02-11 14:27:15 +00:00
|
|
|
@GetMapping("/")
|
|
|
|
|
public String home(Model model) {
|
|
|
|
|
model.addAttribute("currentPage", "home");
|
|
|
|
|
return "home";
|
|
|
|
|
}
|
2023-01-27 18:23:40 +00:00
|
|
|
|
2023-04-22 12:51:01 +01:00
|
|
|
@GetMapping("/home")
|
|
|
|
|
public String root(Model model) {
|
|
|
|
|
return "redirect:/";
|
|
|
|
|
}
|
2023-03-20 21:55:11 +00:00
|
|
|
|
2023-01-27 18:23:40 +00:00
|
|
|
}
|