Bloqueando o Event Loop

node v14.14.0
version: 2.0.0
endpointsharetweet
const express = require('express') const app = express() const port = 3000 app.get('/redos-me', (req, res) => { let filePath = req.query.filePath; // REDOS if (filePath.match(/(\/.+)+$/)) { console.log('valid path'); } else { console.log('invalid path'); } res.sendStatus(200); });
Loading…

no comments

    sign in to comment