refactoring

This commit is contained in:
Oleg Hasjanov 2021-08-27 11:09:49 +03:00 committed by olegphenomenon
parent a87fd6a8b7
commit ece988fca1
6 changed files with 95 additions and 53 deletions

View file

@ -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