mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
16 lines
282 B
Ruby
16 lines
282 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class Api::V1::Maps::TileUsageController < ApiController
|
||
|
|
def create
|
||
|
|
Maps::TileUsage::Track.new(tile_usage_params[:count].to_i).call
|
||
|
|
|
||
|
|
head :ok
|
||
|
|
end
|
||
|
|
|
||
|
|
private
|
||
|
|
|
||
|
|
def tile_usage_params
|
||
|
|
params.require(:tile_usage).permit(:count)
|
||
|
|
end
|
||
|
|
end
|