dawarich/app/controllers/api/v1/owntracks/points_controller.rb

16 lines
284 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2024-08-25 14:19:02 -04:00
class Api::V1::Owntracks::PointsController < ApiController
def create
Owntracks::PointCreatingJob.perform_later(point_params, current_api_user.id)
render json: {}, status: :ok
end
private
def point_params
params.permit!
end
end