text: const express = require("express");
  const router = express.Router();
  
  const { accounts } = require("../../controllers");
  const { catchAsync } = require("../../utilities");
  const validate = require("../../validators");
  
  
  router.route("/")
      // VIEW ALL accounts
      .get(catchAsync(accounts.index))
      // ADD ONE account
      .post(
          validate.accounts,
          catchAsync(accounts.createAccount));
  
  router.route("/:id")
      // VIEW ONE account
      .get(catchAsync(accounts.viewAccount))
      // UPDATE ONE account
      .patch(
          validate.accounts,
          catchAsync(accounts.updateAccount))
      // DELETE ONE account
      .delete(catchAsync(accounts.deleteAccount));
  
  
  module.exports = router;