Skip to content

Commit

Permalink
Added the Favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
jettro committed Nov 21, 2012
1 parent 18d107f commit 18d0be5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion axon-todo-list/mods/web/Server.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
Binary file added axon-todo-list/mods/web/static/img/favicon.ico
Binary file not shown.

0 comments on commit 18d0be5

Please sign in to comment.