mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
13 lines
276 B
Ruby
13 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
|