Permalink
Browse files

Added the Favicon

  • Loading branch information...
jettro committed Nov 21, 2012
1 parent 18d107f commit 18d0be5af7bfa66b0e3c01896976fcdd803c77c2
@@ -11,10 +11,14 @@ def log = container.logger
RouteMatcher routeMatcher = new RouteMatcher()
-routeMatcher.get("/") {req ->
+routeMatcher.get("/") { req ->
req.response.sendFile "static/index.html"
}
+routeMatcher.get("/favicon.ico") { req ->
+ req.response.sendFile "static/img/favicon.ico"
+}
+
routeMatcher.getWithRegEx("^\\/static\\/.*") { req ->
req.response.sendFile(req.path.substring(1))
}
Binary file not shown.

0 comments on commit 18d0be5

Please sign in to comment.