modified api.rb (add delete news)