module News
  class API < Grape::API
    prefix 'api'

    resource :links do
      get do
        Link.all
      end
    end
  end
end

module News
  class API < Grape::API
    prefix 'api'
    format :json

    resource :links do
      get do
        Link.all
      end
    end
  end
end

Set JSON as default format
Set JSON as default format
