A11yWatch/a11ywatch-core

View on GitHub
src/web/routes_groups/list.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function setListRoutes has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const setListRoutes = (app: FastifyInstance) => {
  // paginated retrieve websites from the database.
  app.get("/api/list/website", async (req, res) => {
    const { userId, offset, limit } = getBaseParamsList(req);

Severity: Major
Found in src/web/routes_groups/list.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status