X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Ftest%2FBootstrap.java;h=ad4c38f3aeec6a3ed653822e033b8b0fae14c081;hb=7779099a6c15508f2dd214a7555c66a27f8343ed;hp=bb72f30187a6c2178b18649b04e50404b46a6e91;hpb=a7d2eb2686c6e87d97d66051ba577178e5432511;p=jsvc.git diff --git a/src/dolda/jsvc/test/Bootstrap.java b/src/dolda/jsvc/test/Bootstrap.java index bb72f30..ad4c38f 100644 --- a/src/dolda/jsvc/test/Bootstrap.java +++ b/src/dolda/jsvc/test/Bootstrap.java @@ -5,6 +5,11 @@ import dolda.jsvc.util.*; public class Bootstrap { public static Responder responder() { - return(new ErrorHandler(new TestResponder())); + Multiplexer root = new Multiplexer(); + root.file("test", new TestResponder()); + root.file("", new StaticContent(Bootstrap.class, "static/index.html", false, "text/html")); + root.file("css", new StaticContent(Bootstrap.class, "static/test.css", false, "text/css")); + root.dir("foo", new StaticContent(Bootstrap.class, "static/foo", true, "text/plain; charset=utf-8")); + return(Misc.stdroot(root)); } }