Browse files

Added support for /robots.txt and fixed JSLint errors

  • Loading branch information...
1 parent b6f6c88 commit 09c66816d22cbcad43be5164a84a4dd373914353 @jlecomte committed Sep 25, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/app/middleware/mojito-handler-static.js
View
7 lib/app/middleware/mojito-handler-static.js
@@ -19,7 +19,7 @@
*/
-/*jslint anon:true, sloppy:true, nomen:true*/
+/*jslint node:true, anon:true, sloppy:true, nomen:true, todo:true */
/*
@@ -198,9 +198,12 @@ function staticProvider(store, globalLogger) {
// Use the resource store as a URI "rewriter" here.
// /favicon.ico is sent to ./my_app_folder/assets/favicon.ico
+ // /robots.txt is sent to ./my_app_folder/assets/robots.txt
filename = urls[path];
// TODO: [Issue 80] remove this for performance
- if ((!filename) && (path === '/favicon.ico')) {
+ if (!filename &&
+ (path === '/favicon.ico' ||
+ path === '/robots.txt')) {
filename = pa.join(store._config.root, 'assets', path);
}

0 comments on commit 09c6681

Please sign in to comment.