Last active
March 16, 2017 15:36
-
-
Save wshaddix/f813a90e40eb552d014d858e93fd146c to your computer and use it in GitHub Desktop.
Sample code snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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