```ruby
require 'grape'

module Api
  class CampusesPublicApi < Grape::API

    desc "Get a campus details"
    get '/campuses/:id' do
      campus = Campus.find(params[:id])
      campus
    end

    desc 'Get all the Campuses'
    get '/campuses' do
      campuses = Campus.all
      result = campuses.map do |c|
        {
          id: c.id,
          name: c.name,
          mode: c.mode,
          abbreviation: c.abbreviation
        }
      end
      result
    end
  end
end```

Remove mapping in get all campuses en d point
user
```ruby
require 'grape'

module Api
  class CampusesPublicApi < Grape::API

    desc "Get a campus details"
    get '/campuses/:id' do
      campus = Campus.find(params[:id])
      campus
    end

    desc 'Get all the Campuses'
    get '/campuses' do
      Campus.all
    end
  end
end```
assistant