mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +00:00
17 lines
No EOL
284 B
Ruby
17 lines
No EOL
284 B
Ruby
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 |