add domain to expand

pull/197/head
Sebdraven 2018-06-22 16:06:34 +02:00
parent de6a81d488
commit 396b71ef3b
1 changed files with 2 additions and 0 deletions

View File

@ -44,8 +44,10 @@ def handler(q=False):
return handle_ip(api,ip,misperrors)
elif request.get('domain'):
domain = request['domain']
return handle_domain(api, domain, misperrors)
elif request.get('hostname'):
hostname = request['hostname']
return handle_domain(api, hostname, misperrors)
else:
misperrors['error'] = "Unsupported attributes type"
return misperrors