dawarich/app/controllers/api/v1/stats_controller.rb
2024-08-20 20:14:17 +02:00

10 lines
233 B
Ruby

# frozen_string_literal: true
class Api::V1::StatsController < ApplicationController
skip_forgery_protection
before_action :authenticate_api_key
def index
render json: StatsSerializer.new(current_api_user).call
end
end