compojure.handler

deprecated in 1.2

Functions to create Ring handlers from routes.

This namespace has been DEPRECATED in favor of the ring-defaults library.

api

deprecated in 1.2

(api routes)

Create a handler suitable for a web API. This adds the following middleware to your routes:

  • wrap-params
  • wrap-nested-params
  • wrap-keyword-params

site

deprecated in 1.2

(site routes)(site routes options)

Create a handler suitable for a standard website. This adds the following middleware to your routes:

  • wrap-session
  • wrap-flash
  • wrap-cookies
  • wrap-multipart-params
  • wrap-params
  • wrap-nested-params
  • wrap-keyword-params

A map of options may also be provided. These keys are provided:

:session
a map of session middleware options
:multipart
a map of multipart-params middleware options