A11yWatch/a11ywatch-core

View on GitHub
src/core/controllers/pages/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { getPages, getPage, getAllPages, getPagesPaging } from "./find";
import { generateWebsiteScore } from "./update";
import { pagesCollection } from "../../../database/client";

// Page outside the main website
const PagesController = ({ user } = { user: null }) => {
  return {
    getCollection: pagesCollection,
    getPage,
    getPages,
    getAllPages,
    generateWebsiteScore,
    getPagesPaging,
  };
};

export { PagesController };