Trying to write a simple route, getting a record by it's id property/column
const router = require("express").Router();
router.get("/record/:id", getRecordById) // CHANGE HERE
This is how I'm able to use for frontend ajax -
http://localhost:3001/record/1
What do I need to change, to be able to use the route as
http://localhost:3001/?record=1