Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added the Favicon

  • Loading branch information...
commit 18d0be5af7bfa66b0e3c01896976fcdd803c77c2 1 parent 18d107f
@jettro authored
View
6 axon-todo-list/mods/web/Server.groovy
@@ -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))
}
View
BIN  axon-todo-list/mods/web/static/img/favicon.ico
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.