Skip to content

Commit

Permalink
fix: fix for automatic HEAD routes (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
landonbar authored and metcoder95 committed Oct 16, 2022
1 parent 85196ac commit eb14b76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ module.exports = class ValidatorDictionary {
[httpPart]: validator
}
}
} else if (this[kSchemas][path][method] == null) {
this[kSchemas][path][method] = {
[httpPart]: validator
}
} else {
this[kSchemas][path][method][httpPart] = validator
}
Expand Down

0 comments on commit eb14b76

Please sign in to comment.