WIP
authorKai Moritz <kai@juplo.de>
Fri, 15 Jan 2021 12:35:56 +0000 (13:35 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 15 Jan 2021 12:35:56 +0000 (13:35 +0100)
pom.xml
src/main/java/de/juplo/demo/httpresources/ProxyController.java [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
index 3cd520c..64227c7 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-web</artifactId>
                </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-thymeleaf</artifactId>
+               </dependency>
                <dependency>
                        <groupId>de.juplo</groupId>
                        <artifactId>http-resources</artifactId>
diff --git a/src/main/java/de/juplo/demo/httpresources/ProxyController.java b/src/main/java/de/juplo/demo/httpresources/ProxyController.java
new file mode 100644 (file)
index 0000000..411d7fc
--- /dev/null
@@ -0,0 +1,16 @@
+package de.juplo.demo.httpresources;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+
+@Controller
+public class ProxyController
+{
+  @RequestMapping("/{path}.html")
+  public String controller(@PathVariable String path)
+  {
+    return path;
+  }
+}