UNPKG

flickerjs

Version:

Super fast and simple web framework for node.js (v6.0.0)

24 lines (21 loc) 475 B
const flicker = require('../'); let app = flicker(); app.add( (req,res,next) => { console.log('Atention: '); next(); } ) .add({ handler:[ (req,res,next) => { console.log('You should see this'); res.end(); }, (req,res,next) => { console.log('but, You do not should see this'); res.end(); } ] }) .listen(3000);