mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Added white ip show page
This commit is contained in:
parent
18cd6f5046
commit
b44c757602
2 changed files with 8 additions and 2 deletions
|
@ -11,10 +11,16 @@ module Repp
|
|||
def index
|
||||
ips = current_user.registrar.white_ips
|
||||
|
||||
render_success(data: { ips: ips.as_json(except: %i[creator_str updator_str]),
|
||||
render_success(data: { ips: ips.as_json,
|
||||
count: ips.count })
|
||||
end
|
||||
|
||||
api :GET, '/repp/v1/white_ips/:id'
|
||||
desc 'Get a specific whitelisted IP address'
|
||||
def show
|
||||
render_success(data: { ip: @white_ip.as_json, interfaces: WhiteIp::INTERFACES })
|
||||
end
|
||||
|
||||
api :POST, '/repp/v1/white_ips'
|
||||
desc 'Add new whitelisted IP'
|
||||
def create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue