Permalink
Browse files

Serve static content too

  • Loading branch information...
1 parent 73ce9a7 commit 961b21c2cf8711e31dfa5c27eff0a56adfed8fc9 @indutny committed Nov 29, 2010
Showing with 10 additions and 1 deletion.
  1. +2 −1 lib/tracker/router.js
  2. +8 −0 public/index.html
View
@@ -13,7 +13,8 @@ module.exports = function(db, options, callback) {
bencode,
error,
querydecoder,
- connect.router(router)
+ connect.router(router),
+ connect.staticProvider(__dirname + '/../../public')
);
server.listen(options.server.port, options.server.host);
View
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Light.Tracker</title>
+ </head>
+ <body>
+ </body>
+</html>

0 comments on commit 961b21c

Please sign in to comment.