index.js 503 B

1234567891011121314151617
  1. const express = require('express');
  2. const path = require('path');
  3. const CrudModule = require('../../base/CrudModule');
  4. const RepositorySystem = require('../../systems/RepositorySystem');
  5. const RoutingSystem = require('../../systems/RoutingSystem');
  6. class UsersModule extends CrudModule {
  7. constructor(){
  8. super('/users', [5,0,5,5,0], 'Users');
  9. this.repository = RepositorySystem.create('Users');
  10. this.setRepo(this.repository);
  11. this.router = express.Router();
  12. }
  13. }
  14. module.exports = UsersModule;