timi-codes/Banka

View on GitHub
API/middlewares/ParamsSchemaValidator.js

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 1 total issue

Similar blocks of code found in 2 locations. Consider refactoring.
Invalid

return (req, res, next) => {
const route = req.route.path;
const method = req.method.toLowerCase();
 
if (supportedMethods.includes(method) && route in Schemas) {
Severity: Major
Found in API/middlewares/ParamsSchemaValidator.js and 1 other location - About 1 day to fix
API/middlewares/BodySchemaValidator.js on lines 12..41

There are no issues that match your filters.

Category
Status