Antyfive/teo.js

View on GitHub
lib/routerMounter.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(router, moduleName, optionalNamespace) {
    // all routes for the particular module will be wrapped with namespace
    let ns = router.ns(typeof optionalNamespace === "string" ? optionalNamespace : `/${moduleName.toLowerCase()}`);

    function middleHandler(method) {
Severity: Minor
Found in lib/routerMounter.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status