Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 340 Bytes

File metadata and controls

18 lines (13 loc) · 340 Bytes

Middleware Demo

curl https://<PROJECT-NAME>.glitch.me/

Organization routes by specificity

Generally speaking we want the following order

  • middleware used for all routes (EG logging)
  • static routes
  • middleware for dynmanic routes (EG parsers)
  • dynamic routes
  • catch all routes
  • error handlers