A11yWatch/a11ywatch-core

View on GitHub
src/core/controllers/websites/websites.ts

Summary

Maintainability
A
35 mins
Test Coverage
import {
  getWebsite,
  getWebsites,
  getWebsitesWithUsers,
  getWebsitesPaginated,
} from "./find";
import { updateWebsite, sortWebsites } from "./update";
import { addWebsite } from "./set";
import { removeWebsite } from "./remove";
import { websitesCollection } from "../../../database";

export const WebsitesController = ({ user } = { user: null }) => ({
  getCollection: websitesCollection,
  getWebsite,
  getWebsites,
  getWebsitesPaginated,
  getWebsitesWithUsers,
  addWebsite,
  removeWebsite,
  updateWebsite,
  sortWebsites,
});