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