Skip to content

Instantly share code, notes, and snippets.

@ufocoder
Created October 31, 2018 12:04
Show Gist options
  • Select an option

  • Save ufocoder/4c65d2c64dfb7ee9e73f31c8f567f0b1 to your computer and use it in GitHub Desktop.

Select an option

Save ufocoder/4c65d2c64dfb7ee9e73f31c8f567f0b1 to your computer and use it in GitHub Desktop.
readFile(
filePath,
higherOrderNodeCallback(
closeWithContent(res, 200, headers),
closeWithStatus(res, 404)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment