Permalink
Browse files

Added support for crossdomain.xml file

  • Loading branch information...
1 parent 09c6681 commit ebccc52a7b9c3e257efdcd07c216d797c882bb18 @jlecomte committed Sep 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/app/middleware/mojito-handler-static.js
@@ -199,11 +199,13 @@ 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' ||
- path === '/robots.txt')) {
+ path === '/robots.txt' ||
+ path === '/crossdomain.xml')) {
filename = pa.join(store._config.root, 'assets', path);
}

0 comments on commit ebccc52

Please sign in to comment.