clojurecup2015-mailhead/resources/docs/docs.md

1.1 KiB

Managing Your Middleware

Request middleware functions are located under the mailhead.middleware namespace.

This namespace is reserved for any custom middleware for the application. Some default middleware is already defined here. The middleware is assembled in the wrap-base function.

Middleware used for development is placed in the mailhead.dev-middleware namespace found in the env/dev/clj/ source path.

  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