imaginerio/narratives

View on GitHub
routes/upload.js

Summary

Maintainability
A
1 hr
Test Coverage

Function prepareMiddleware has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  prepareMiddleware() {
    const middleware = express();
    middleware.use(bodyParser.json());
    middleware.post('/upload', (req, res) => {
      const { name, type } = req.body;
Severity: Minor
Found in routes/upload.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status