mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
9 lines
237 B
Ruby
9 lines
237 B
Ruby
class PointsController < ApplicationController
|
|
before_action :authenticate_user!
|
|
|
|
def index
|
|
@points = Point.all.order(timestamp: :asc)
|
|
|
|
@coordinates = @points.pluck(:latitude, :longitude).map { [_1.to_f, _2.to_f] }
|
|
end
|
|
end
|