mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
refactoring
This commit is contained in:
parent
a87fd6a8b7
commit
ece988fca1
6 changed files with 95 additions and 53 deletions
|
@ -1,4 +1,4 @@
|
|||
require 'serializers/repp/domain'
|
||||
require 'serializers/repp/contact'
|
||||
|
||||
module Api
|
||||
module V1
|
||||
|
@ -9,7 +9,8 @@ module Api
|
|||
|
||||
if @contact
|
||||
render json: { contact: Serializers::Repp::Contact.new(@contact,
|
||||
show_address: false).to_json }, status: :found
|
||||
show_address: false).to_json },
|
||||
status: :found
|
||||
else
|
||||
render json: { errors: 'Contact not found' }, status: :not_found
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue