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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.