Added support for /robots.txt and fixed JSLint errors #565

Merged
merged 2 commits into from Oct 12, 2012
Jump to file or symbol
Failed to load files and symbols.
+7 −2
Split
@@ -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,14 @@ 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
+ // /crossdomain.xml is sent to ./my_app_folder/assets/crossdomain.xml
filename = urls[path];
// TODO: [Issue 80] remove this for performance
- if ((!filename) && (path === '/favicon.ico')) {
+ if (!filename &&
+ (path === '/favicon.ico' ||
+ path === '/robots.txt' ||
+ path === '/crossdomain.xml')) {
filename = pa.join(store._config.root, 'assets', path);
}