Split API and Sinatra