Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample code snippet
public class RegistrationModule : NancyModule
public RegistrationModule() : base("/registrations")
Get["/"] = parameters => "List of registrations";
Get["/{id}"] = parameters => "Details of a single registration";
Post["/"] = parameters => "Create a new registration";
Patch["/{id}"] = parameters => "Patch a single registration";
Delete["/{id}"] = parameters => "Delete a single registration";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.