mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
20 lines
417 B
Ruby
20 lines
417 B
Ruby
require 'rails5_api_controller_backport'
|
|
|
|
module Api
|
|
module V1
|
|
module Registrant
|
|
class DomainsController < ActionController::API
|
|
|
|
def show
|
|
@domain = Domain.find_by(uuid: params[:uuid])
|
|
|
|
if @domain
|
|
render json: @domain
|
|
else
|
|
render json: { errors: ["Domain not found"] }, status: :not_found
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|