mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
20 lines
415 B
Ruby
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
|