I'm attempting to achieve this, but it's not functioning as expected.
app.get("/|/:enter");
I would like to have one app.get
route that covers both /
and /:enter
.
update
Both
app.get("/|/:enter");
as well as
app.get("/:enter|/");
do not pass the entire "enter" string to the params middleware parse, instead, the id
variable only contains "e".