smeagol/resources/public/md/docs.md

1.1 KiB

Managing Your Middleware

Request middleware functions are located under the smeagol.middleware namespace. A request logging helper called log-request has already been defined for you there.

This namespace also defines two vectors for organizing the middleware called development-middleware and production-middleware. Any middleware that you only wish to run in development mode, such as log-request, should be added to the first vector.

  1. HTML templating
  2. Accessing the database
  3. Serving static resources
  4. Setting response types
  5. Defining routes
  6. Adding middleware
  7. Sessions and cookies
  8. Security
  9. Deploying the application