How to use the awilix-express.inject function in awilix-express

To help you get started, we’ve selected a few awilix-express examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github talyssonoc / node-api-boilerplate / src / interfaces / http / user / UsersController.js View on Github external
get router() {
    const router = Router();

    router.use(inject('userSerializer'));

    router.get('/', inject('getAllUsers'), this.index);
    router.get('/:id', inject('getUser'), this.show);
    router.post('/', inject('createUser'), this.create);
    router.put('/:id', inject('updateUser'), this.update);
    router.delete('/:id', inject('deleteUser'), this.delete);

    return router;
  },
github talyssonoc / node-api-boilerplate / src / interfaces / http / user / UsersController.js View on Github external
get router() {
    const router = Router();

    router.use(inject('userSerializer'));

    router.get('/', inject('getAllUsers'), this.index);
    router.get('/:id', inject('getUser'), this.show);
    router.post('/', inject('createUser'), this.create);
    router.put('/:id', inject('updateUser'), this.update);
    router.delete('/:id', inject('deleteUser'), this.delete);

    return router;
  },
github talyssonoc / node-api-boilerplate / src / interfaces / http / user / UsersController.js View on Github external
get router() {
    const router = Router();

    router.use(inject('userSerializer'));

    router.get('/', inject('getAllUsers'), this.index);
    router.get('/:id', inject('getUser'), this.show);
    router.post('/', inject('createUser'), this.create);
    router.put('/:id', inject('updateUser'), this.update);
    router.delete('/:id', inject('deleteUser'), this.delete);

    return router;
  },
github talyssonoc / node-api-boilerplate / src / interfaces / http / user / UsersController.js View on Github external
get router() {
    const router = Router();

    router.use(inject('userSerializer'));

    router.get('/', inject('getAllUsers'), this.index);
    router.get('/:id', inject('getUser'), this.show);
    router.post('/', inject('createUser'), this.create);
    router.put('/:id', inject('updateUser'), this.update);
    router.delete('/:id', inject('deleteUser'), this.delete);

    return router;
  },
github talyssonoc / node-api-boilerplate / src / interfaces / http / user / UsersController.js View on Github external
get router() {
    const router = Router();

    router.use(inject('userSerializer'));

    router.get('/', inject('getAllUsers'), this.index);
    router.get('/:id', inject('getUser'), this.show);
    router.post('/', inject('createUser'), this.create);
    router.put('/:id', inject('updateUser'), this.update);
    router.delete('/:id', inject('deleteUser'), this.delete);

    return router;
  },

awilix-express

Awilix helpers for Express

MIT
Latest version published 10 months ago

Package Health Score

56 / 100
Full package analysis

Similar packages