Skip to content

Commit e8f6686

Browse files
committed
add custom mimeTypes config option
1 parent f62eb12 commit e8f6686

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class API {
2121
this._version = props && props.version ? props.version : 'v1'
2222
this._base = props && props.base && typeof props.base === 'string' ? props.base.trim() : ''
2323
this._callbackName = props && props.callback ? props.callback.trim() : 'callback'
24+
this._mimeTypes = props && props.mimeTypes && typeof props.mimeTypes === 'object' ? props.mimeTypes : {}
2425

2526
// Prefix stack w/ base
2627
this._prefix = this.parseRoute(this._base)

0 commit comments

Comments
 (0)