Your node.js implementation doesn't sanitize static file path, allowing an attacker to load any file from disk. Framework would have likely prevented that :)
Totally! It's definitely going too far. I'd probably add in a routing library too.
I'd love to see a pull request to add your Node implementation if you're up for it!
A framework that parses incoming requests and calls your code is exactly the right choice for the problem of responding to web requests at multiple endpoints. Not for every problem, but for this one, yes.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Totally! It's definitely going too far. I'd probably add in a routing library too.
I'd love to see a pull request to add your Node implementation if you're up for it!
Sorry, it's not worth fixing IMO.
A framework that parses incoming requests and calls your code is exactly the right choice for the problem of responding to web requests at multiple endpoints. Not for every problem, but for this one, yes.