I'm trying to use request parameters for an Express endpoint. However, I'm getting an error message To utilize request bodies, req.body should be an object.:
To solve it, I've installed body-parser with npm install body-parser and added an import to the routes file. However, now I'm getting following error:
How can I solve it? Thanks!

