Express - Allow get request even if something after slash

Let’s say I have links like this where the last part after the slash is automatically generated and different for every user:
https://domain.glitch.me/something/1xD7h
How do I get it to still allow the get request and not have to make a new app.get request handler for all of the random ids? I then want to grab that ID from the url using split().

If you know how to do this, let me know :slight_smile:
Eddie

app.get("/something/:id", (req, res) => {
  console.log(req.params.id);
});
1 Like

Amazing! Who knew it could be so simple to do!

Thanks for the help :slight_smile:
Eddie