3 ms·
You don't have to specify the type in the signature; you can just as easily parse the request body manually. But in the instance where the endpoint only accepts
by jamincan 4y ago
You don't have to specify the type in the signature; you can just as easily parse the request body manually. But in the instance where the endpoint only accepts json, it's simpler to write it this way.
- zemo 4y agohttps://news.ycombinator.com/item?id=33721070 https://news.ycombinator.com/item?id=33721070 same line of reasoning as here