mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
9 lines
207 B
Ruby
9 lines
207 B
Ruby
class PointsController < ApplicationController
|
|
before_action :authenticate_user!
|
|
|
|
def index
|
|
@points = current_user.points
|
|
|
|
@coordinates = @points.as_json(only: [:latitude, :longitude])
|
|
end
|
|
end
|