mw-ui/resources/public/md/docs.md

1 KiB

Managing Your Middleware

Two middleware functions are provided by default in the mw-ui.middleware namespace.

  • log-request - logs all requests using the debug level
  • template-error-page - provides friendly formatting for Selmer errors in dev mode

See the :middleware key of the app definition located in the mw-ui.handler namespace to manage the enabled middleware.

  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