decorator-router-express
Express strategy for decorator-router
Install
$ npm install --save decorator-router decorator-router-express
Usage
Given a controller controller/homeCtrl.js
; const isLoggedIn = ; const isRole = ; @isLoggedIn @ { res; } @ @ { res; }
You can register those routes by doing:
;;; let app = ; ;
License
MIT © Thomas Sileghem