mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
8 lines
160 B
Ruby
8 lines
160 B
Ruby
|
|
class PointsController < ApplicationController
|
||
|
|
def index
|
||
|
|
@points = Point.all
|
||
|
|
|
||
|
|
@coordinates = @points.as_json(only: [:latitude, :longitude])
|
||
|
|
end
|
||
|
|
end
|