server/utils/express

Express-related utilities.

Source:

Methods

(static) ensureRequest(req) → {Request}

Source:

Ensures that the specified object is an Express request, or throws an error.

Parameters:
Name Type Description
req Request

An Express request object.

Returns:

The first argument, unchanged.

Type
Request

(static) logger()

Source:

An Express middleware function that will log all HTTP requests.