web:javascript:inversify
Inversify
inversify-express-utils
container .bind<RequestHandler>('Middleware') .toConstantValue(function customMiddleware(req, res, next) { console.log('custom handler'); next(); }) .whenTargetNamed('Custom');
@controller( '/portfolios', container.getNamed<RequestHandler>('Middleware', 'Custom'), )
web/javascript/inversify.txt · Dernière modification : 2022/02/02 00:42 de 127.0.0.1