Skip to content

Instantly share code, notes, and snippets.

@thecodejunkie
Created February 18, 2011 23:31
Show Gist options
  • Select an option

  • Save thecodejunkie/834601 to your computer and use it in GitHub Desktop.

Select an option

Save thecodejunkie/834601 to your computer and use it in GitHub Desktop.
Example of what a route condition could look like using Nancy
Get[@"/(?<foo>\d{2,4})/{bar}", () => Request.Protocol.Equals("https")] = parameters => {
return View["viewname", parameters];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment