dawarich/app/controllers/api/v1/points_controller.rb
2024-05-25 12:57:39 +02:00

20 lines
415 B
Ruby

# frozen_string_literal: true
# TODO: Deprecate in 1.0
class Api::V1::PointsController < ApplicationController
skip_forgery_protection
def create
Rails.logger.info 'This endpoint will be deprecated in 1.0. Use /api/v1/owntracks/points instead'
Owntracks::PointCreatingJob.perform_later(point_params)
render json: {}, status: :ok
end
private
def point_params
params.permit!
end
end