index.js 568 B

12345678910111213141516
  1. const express = require('express');
  2. const path = require('path');
  3. const OneToOne = require('../../base/OneToOne');
  4. const CrudModule = require('../../base/CrudModule');
  5. const RepositorySystem = require('../../systems/RepositorySystem');
  6. const RoutingSystem = require('../../systems/RoutingSystem');
  7. const Actions = require('../../systems/ActionSystem');
  8. class CategoriesModule extends CrudModule { // this.repository ready!
  9. constructor(){
  10. super('/categories', [3,0,3,4,0], 'Category');
  11. new OneToOne('Category', 'Products')
  12. }
  13. }
  14. module.exports = CategoriesModule;