ensl.org/app/controllers/api/v1/maps_controller.rb

17 lines
284 B
Ruby
Raw Normal View History

2015-08-01 15:34:01 +00:00
class Api::V1::MapsController < Api::V1::BaseController
def index
render json: { maps: gather_maps }
end
private
def gather_maps
Map.classic.basic.map do |m|
{
id: m.id,
name: m.name,
category_id: m.category_id
}
end
end
end