cmr.http.kit.app.middleware

Custom site and API middleware for new CMR services.

wrap-base-url-subs

(wrap-base-url-subs handler system)

Documentation forthcoming

wrap-cors

(wrap-cors handler)

Ring-based middleware for supporting CORS requests.

wrap-directory-resource

(wrap-directory-resource handler system)(wrap-directory-resource handler system content-type)

Documentation forthcoming

wrap-fallback-content-type

(wrap-fallback-content-type handler default-content-type)

Documentation forthcoming

wrap-log-request

(wrap-log-request handler)

Documentation forthcoming

wrap-log-response

(wrap-log-response handler)

Documentation forthcoming

wrap-not-found

(wrap-not-found handler system)

Documentation forthcoming

wrap-resource

(wrap-resource handler system)

Documentation forthcoming

wrap-ring-middleware

(wrap-ring-middleware handler system)

Documentation forthcoming

wrap-trailing-slash

(wrap-trailing-slash handler)

Ring-based middleware forremoving a single trailing slash from the end of the URI, if present.