Connect

format

Format

The format middleware populates req.format from urls such as /products.json where the req.url becomes /products and req.format becomes json.