Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express get raw query

const url = require('url');
const express = require('express');

const app = express();
app.use((req, res, next) => {
  const query = url.parse(req.url).query;
  // Do something...
});

const port = 3000;
app.listen(port, console.log(`Listening on port ${port}.`));
 
PREVIOUS NEXT
Tagged: #express #raw #query
ADD COMMENT
Topic
Name
3+1 =