From e96a6c56de7cb78615f4d2968db1989b5bfcb914 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 1 Feb 2014 11:19:27 -0800 Subject: Adding access to error pages in dev --- src/com/p4square/grow/frontend/GrowFrontend.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/p4square/grow/frontend/GrowFrontend.java b/src/com/p4square/grow/frontend/GrowFrontend.java index 4ecd5c0..e2cb6c8 100644 --- a/src/com/p4square/grow/frontend/GrowFrontend.java +++ b/src/com/p4square/grow/frontend/GrowFrontend.java @@ -162,6 +162,8 @@ public class GrowFrontend extends FMFacade { component.getDefaultHost().attach("/scripts", new FileServingApp("./build/root/scripts")); component.getDefaultHost().attach("/style.css", new FileServingApp("./build/root/style.css")); component.getDefaultHost().attach("/favicon.ico", new FileServingApp("./build/root/favicon.ico")); + component.getDefaultHost().attach("/notfound.html", new FileServingApp("./build/root/notfound.html")); + component.getDefaultHost().attach("/error.html", new FileServingApp("./build/root/error.html")); } catch (IOException e) { LOG.error("Could not create directory for static resources: " + e.getMessage(), e); -- cgit v1.2.3