adesege/express-api-versioning

View on GitHub
src/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Avoid too many return statements within this function.
Open

      return callback({
        code: 103,
        message: 'Entry point not Found'
      }, httpRequest, httpResponse, next); // we can't find the entry point, throw an error
Severity: Major
Found in src/index.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return callback({
          code: 104,
          message: 'No version number found'
        }, httpRequest, httpResponse, next);
    Severity: Major
    Found in src/index.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status