mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
refactoring
This commit is contained in:
parent
a87fd6a8b7
commit
ece988fca1
6 changed files with 95 additions and 53 deletions
|
@ -9,7 +9,8 @@ module Api
|
|||
|
||||
if @domain
|
||||
render json: { domain: Serializers::Repp::Domain.new(@domain,
|
||||
sponsored: true).to_json }, status: :found
|
||||
sponsored: true).to_json },
|
||||
status: :found
|
||||
else
|
||||
render json: { errors: 'Domain not found' }, status: :not_found
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue