dawarich/app/controllers/api/v1/owntracks/points_controller.rb
2024-05-25 13:26:56 +02:00

18 lines
342 B
Ruby

# frozen_string_literal: true
class Api::V1::PointsController < ApplicationController
skip_forgery_protection
before_action :authenticate_api_key
def create
Owntracks::PointCreatingJob.perform_later(point_params, current_user.id)
render json: {}, status: :ok
end
private
def point_params
params.permit!
end
end