Father of four under four, three boys and one girl! Full-Stack dev programming mostly in Javascript/TypeScript these days, with a decent amount of Rust on the side
At first I thought it would be weird too, but I've found that only using it on routes that actually need to parse json actually doesn't look so bad. For example
At first I thought it would be weird too, but I've found that only using it on routes that actually need to parse json actually doesn't look so bad. For example
It might still be better to just use
express.json
or to rename it to something likejsonMiddleware
though