mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
17 lines
376 B
Ruby
17 lines
376 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Api::V1::Overland::BatchesController < ApplicationController
|
|
skip_forgery_protection
|
|
|
|
def create
|
|
Overland::BatchCreatingJob.perform_later(batch_params)
|
|
|
|
render json: { result: 'ok' }, status: :created
|
|
end
|
|
|
|
private
|
|
|
|
def batch_params
|
|
params.permit(locations: [:type, geometry: {}, properties: {}], batch: {})
|
|
end
|
|
end
|