mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 15:06:23 +02:00
Added endpoints for creating and downloading api user certificates
This commit is contained in:
parent
b558c80e83
commit
47b6a1b87a
18 changed files with 377 additions and 102 deletions
|
@ -1,6 +1,7 @@
|
|||
module Repp
|
||||
module V1
|
||||
class WhiteIpsController < BaseController
|
||||
before_action :find_white_ip, only: %i[show update destroy]
|
||||
load_and_authorize_resource
|
||||
|
||||
THROTTLED_ACTIONS = %i[index show create update destroy].freeze
|
||||
|
@ -57,6 +58,10 @@ module Repp
|
|||
|
||||
private
|
||||
|
||||
def find_white_ip
|
||||
@white_ip = current_user.registrar.white_ips.find(params[:id])
|
||||
end
|
||||
|
||||
def white_ip_params
|
||||
params.require(:white_ip).permit(:ipv4, :ipv6, interfaces: [])
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue