WIP: thymeproxy
authorKai Moritz <kai@juplo.de>
Sat, 18 Jun 2016 10:25:24 +0000 (12:25 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 18 Jun 2016 10:25:24 +0000 (12:25 +0200)
src/main/java/de/juplo/thymeproxy/Application.java

index d4ccd53..d7aa61d 100644 (file)
@@ -27,10 +27,11 @@ public class Application
     mapping.setOrder(Ordered.HIGHEST_PRECEDENCE);
     Map<String, Object> mappings = new HashMap<>();
     mappings.put("/thymeleaf/.*\\.html", proxy);
+    mappings.put("/img/.+", proxy);
     mappings.put("/css/.+", proxy);
     mappings.put("/js/.+", proxy);
     mappings.put("/fonts/.+", proxy);
-    mappings.put(".*\\.html", views);
+    mappings.put("/.*\\.html", views);
     mapping.setUrlMap(mappings);
        return mapping;
   }