Skip to content

Instantly share code, notes, and snippets.

@rts-rob
Created September 11, 2017 06:22
Show Gist options
  • Save rts-rob/1b2ab65f421081145c82b8e68fbec780 to your computer and use it in GitHub Desktop.
Save rts-rob/1b2ab65f421081145c82b8e68fbec780 to your computer and use it in GitHub Desktop.
Basic archetype of every express function ever
function archetype (request, response) {
// Get Data out of the request
// Process that data
// Build and send the response
response.setHeaders();
response.write();
response.end();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment