Demo entry 6634379

express_middleware

   

Submitted by anonymous on Aug 09, 2017 at 23:35
Language: JavaScript. Code size: 216 Bytes.

var app = express();

app.use(function (req, res, next) {
    console.log('%s %s - %s', (new Date()).toString(), req.method, req.url);
    
    return next(); // skoči u sljedeću middleware funkciju u lancu
});

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).