Permalink
Browse files

Serve files with serve module.

Keep an in-memory cache of individual files as buffers.
  • Loading branch information...
0 parents commit 075e6292d23b89b1dadd0d2bb2b572057db31509 @reid reid committed Jan 7, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 lib/mime.js
@@ -0,0 +1,16 @@
+this.contentTypes = {
+ "css": "text/css",
+ "html": "text/html",
+ "ico": "image/x-icon",
+ "jpeg": "image/jpeg",
+ "jpg": "image/jpeg",
+ "js": "application/javascript",
+ "json": "application/json",
+ "less": "text/css",
+ "png": "image/png",
+ "svg": "image/svg+xml",
+ "swf": "application/x-shockwave-flash",
+ "tiff": "image/tiff",
+ "txt": "text/plain",
+ "xml": "text/xml"
+};

0 comments on commit 075e629

Please sign in to comment.