Skip to content

Commit 1b0e562

Browse files
committed
Fixed bug with renderAsset method
1 parent c0c3d97 commit 1b0e562

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ module.exports = (http) => {
189189
* @param {string} assetType
190190
* @param {Server.Response} res
191191
*/
192-
renderAsset(path, file, assetType res) {
192+
renderAsset(path, file, assetType, res) {
193193
fs.readFile(`${path}/${file}`, (err, data) => {
194194
if(err) {
195195
res.statusCode = 404;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "small-router",
3-
"version": "1.0.3",
3+
"version": "1.0.5",
44
"description": "Small router module that creates http server and runs callbacks that have have been added for a route via the api",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)