Sinatra endpoint