Googling for ‘sinatra names routes’ turns up quite a few things, this might be interesting: https://github.com/rkh/sinatra-advanced-routes, but I haven’t looked in detail yet.