Skip to content

Instantly share code, notes, and snippets.

@bradygaster-zz
Created July 26, 2012 21:39
Show Gist options
  • Save bradygaster-zz/3184722 to your computer and use it in GitHub Desktop.
Save bradygaster-zz/3184722 to your computer and use it in GitHub Desktop.
namespace NandyFxDemo.NancyStuff
{
public class Bootstrapper : Nancy.DefaultNancyBootstrapper
{
protected override void ConfigureConventions(Nancy.Conventions.NancyConventions nancyConventions)
{
base.ConfigureConventions(nancyConventions);
nancyConventions.StaticContentsConventions.Add(
Nancy.Conventions.StaticContentConventionBuilder.AddFile("/Default.html", "Default.html")
);
nancyConventions.StaticContentsConventions.Add(
Nancy.Conventions.StaticContentConventionBuilder.AddDirectory("/scripts")
);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment