Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 287 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 287 Bytes

EXAMPLE MIDDLEWARE MODULE

This example shows how to create a "middleware" - code which runs before and after every request.

It shows how to:

  • run code before every request - to block requests from certain IP addresses.
  • run code after every request - to add a custom HTTP header.