class WeatherController < Sinatra::Base
  include Ubiquity::Controller

  ##
  # do our mappings
  ##
  Ubiquity::Api.register do |config|
    config.setup controller: self, resource:Weather, path: "/weathers"
  end


  ##
  #
  ##
  get '/' do
    json(paginate(find(Weather))) #Weather is a class name here
  end

end
