diegohaz/querymen

keywords is returning an empty object

leivermoreno opened this issue · 0 comments

const express = require("express");
const qmen = require("querymen");

const app = express();

app.get("/", qmen.middleware(), ({ querymen: { query } }, res, next) => {
  res.send(query);
});

app.listen(8000, console.log.call(null, "Server running"));

As simple as that. when I request /?q=term I get an empty object:

{
    "keywords": {}
}

I don't know if I should enable something else or if it's really an issue.
Express version: 4.17.1
Node version: v12.16.1

Edit: It should be noted that all other features work well.