Skip to content

Commit

Permalink
removing duplicate parameter, and adding documentation to options par…
Browse files Browse the repository at this point in the history
…ameter
  • Loading branch information
Raphael Gomes Santos committed Oct 4, 2022
1 parent a79071e commit 6822c20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ const { ExpressWrapper } = require ('ninja-util');
```

The wrappers methods for each http method have the `options` parameter, used to send optional settings.

To allow file upload in a specific route, the user should set:
```js
options.acceptFiles = true
```

## Heap

> TODO
Expand Down
2 changes: 1 addition & 1 deletion expresswrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ ExpressWrapper.prototype.put = function(route, streamResponse, callback, options
callback = streamResponse;
streamResponse = false;
}
_request.call(this, "put", route, streamResponse, callback, options, options);
_request.call(this, "put", route, streamResponse, callback, options);
};

ExpressWrapper.prototype.delete = function(route, streamResponse, callback, options)
Expand Down

0 comments on commit 6822c20

Please sign in to comment.