implemented request router via sinatra