Configuration
addFormat()
Signature
Section titled “Signature”addFormat() — returns void
Available in: controller, model, mapper, migrator, migration, tabledefinition
Category: Miscellaneous Functions
Description
Section titled “Description”Adds a new MIME type to your Wheels application for use with responding to multiple formats.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
extension | string | yes | — | File extension to add. |
mimeType | string | yes | — | Matching MIME type to associate with the file extension. |