Files
danbooru/app/controllers/ip_addresses_controller.rb
2022-09-17 23:30:13 -05:00

12 lines
295 B
Ruby

# frozen_string_literal: true
class IpAddressesController < ApplicationController
respond_to :html, :xml, :json
def show
@ip_address = authorize Danbooru::IpAddress.new(params[:id]), policy_class: IpAddressPolicy
@ip_info = @ip_address.ip_info
respond_with(@ip_info)
end
end