mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
12 lines
284 B
Ruby
12 lines
284 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Api::V1::PointsController < ApplicationController
|
|
before_action :authenticate_user!
|
|
|
|
def destroy
|
|
point = current_user.tracked_points.find(params[:id])
|
|
point.destroy
|
|
|
|
render json: { message: 'Point deleted successfully' }
|
|
end
|
|
end
|