Basically, the routes are defined by the project’s structure. My idea is to have a functional library in a couple of weeks that works very much like Nitro.
I think define_handler is a bit too generic. I know you’re technically defining a handler, but as we’re already in a special file, I think it could be more aesthetic. route perhaps? Or skipping the enclosing block entirely. Or, I think this is my favourite, do like Next and remove the method from the file name and instead have get/put/delete/etc blocks. I think it makes sense to have the different methods on the same path in the same file.
A simpler way to get URL parameters. Getting them as block parameters would be cool, but I suspect that would be hard, if not impossible.