mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Feature Request: Allow configurable directory to route the source files from #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'd like to be able to set the directory where the various .js and .css files 
such as mini-profiler-includes.js get requested from.

The mini profiler currently requests a set of files from the server such as 
mini-profiler-includes.js and mini-profiler-yepnope-1.0.1.js.  Due to security 
policies out of my control we have to whitelist Allow files in the root 
directory to be accessible.  If I could configure it such that it would request 
all files from ~/Scripts or something, then I could Allow * in that directory.

Original issue reported on code.google.com by scott.stafford on 17 Jun 2011 at 5:18

GoogleCodeExporter commented 8 years ago

Original comment by nrcraver on 20 Jun 2011 at 12:01

GoogleCodeExporter commented 8 years ago
There is a new RouteBasePath property on Settings you can use exactly as 
requested above, for example:

    MiniProfiler.Settings.RouteBasePath = "~/profiler";

Note: the setting (defaulting to "~/") *must be app relative*

Original comment by nrcraver on 23 Jun 2011 at 2:10

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by scott.stafford on 24 Jun 2011 at 11:20