public class Bootstrapper : DefaultNancyBootstrapper
{
PRotected override void ConfigureConventions(NancyConventions nancyConventions)
{
base.ConfigureConventions(nancyConventions);
nancyConventions.StaticContentsConventions.Clear();
nancyConventions.StaticContentsConventions.Add
(StaticContentConventionBuilder.AddDirectory("Content", "/Content"));
nancyConventions.StaticContentsConventions.Add
(StaticContentConventionBuilder.AddDirectory("Scripts", "/Scripts"));
}
}
新闻热点
疑难解答