reorg files and cleaned up files

This commit is contained in:
Muneeb Ali
2016-08-29 11:05:56 -04:00
parent 456b438c9f
commit b756716613
45 changed files with 3 additions and 27 deletions

View File

@@ -43,6 +43,7 @@ from .parameters import parameters_required
from .dkim import dns_resolver, parse_pubkey_from_data, DKIM_RECORD_PREFIX
from .utils import zone_file_is_too_big
from .s3 import s3_upload_file
from ..resolver.server import get_users
from .settings import (
RESOLVER_URL, SEARCH_URL,

View File

@@ -301,8 +301,8 @@ def get_all_users():
return data
@app.route('/v2/users/<usernames>', methods=['GET'], strict_slashes=False)
@crossdomain(origin='*')
#@app.route('/v2/users/<usernames>', methods=['GET'], strict_slashes=False)
#@crossdomain(origin='*')
def get_users(usernames):
""" Fetch data from username in .id namespace
"""

View File

@@ -1,25 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Resolver
~~~~~
:copyright: (c) 2014-2016 by Halfmoon Labs, Inc.
:copyright: (c) 2016 blockstack.org
:license: MIT, see LICENSE for more details.
"""
import os
from resolver.server import app
from resolver.config import DEFAULT_HOST, DEFAULT_PORT, DEBUG
# ------------------------------
def runserver():
port = int(os.environ.get('PORT', DEFAULT_PORT))
app.run(host=DEFAULT_HOST, port=port, debug=DEBUG)
# ------------------------------
if __name__ == '__main__':
runserver()