Commit | Line | Data |
---|---|---|
00013ab7 FT |
1 | package dolda.jsvc.test; |
2 | ||
3 | import dolda.jsvc.*; | |
a7d2eb26 | 4 | import dolda.jsvc.util.*; |
00013ab7 FT |
5 | |
6 | public class Bootstrap { | |
7 | public static Responder responder() { | |
7779099a FT |
8 | Multiplexer root = new Multiplexer(); |
9 | root.file("test", new TestResponder()); | |
10 | root.file("", new StaticContent(Bootstrap.class, "static/index.html", false, "text/html")); | |
11 | root.file("css", new StaticContent(Bootstrap.class, "static/test.css", false, "text/css")); | |
12 | root.dir("foo", new StaticContent(Bootstrap.class, "static/foo", true, "text/plain; charset=utf-8")); | |
13 | return(Misc.stdroot(root)); | |
00013ab7 FT |
14 | } |
15 | } |