Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for /robots.txt and fixed JSLint errors

  • Loading branch information...
commit 09c66816d22cbcad43be5164a84a4dd373914353 1 parent b6f6c88
@jlecomte authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.