Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created September 13, 2018 01:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dcomartin/5e229dea8139b9ae1b24ec103bc93423 to your computer and use it in GitHub Desktop.
public class ProductsModule : NancyModule
{
public ProductsModule()
{
Get["/products/{id}", runAsync: true] = async (_, token) =>
{
//do something long and tedious
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment