pankod/refine

View on GitHub
packages/devtools-server/src/serve-api.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function serveApi has 115 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const serveApi = (app: Express, db: Data) => {
  app.use("/api", json());

  app.get("/api/connected-app", (_, res) => {
    res.json({ url: db.connectedApp });
Severity: Major
Found in packages/devtools-server/src/serve-api.ts - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status