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