fixed /v1/search endpoint -- now it forwards to the searcher blueprint if enabled, or makes request to search.blockstack

This commit is contained in:
Aaron Blankstein
2017-04-13 15:29:36 -04:00
parent 566c2895ce
commit 58e2af7fe5
7 changed files with 174 additions and 29 deletions

View File

@@ -26,7 +26,6 @@ This file is part of Search.
import sys
import json
import threading
import pylibmc
from time import time
from flask import request, jsonify, make_response, render_template, Blueprint
@@ -44,7 +43,7 @@ from .attributes_index import search_proofs, validProofQuery
searcher = Blueprint('searcher', __name__, url_prefix='')
from api.resolver import get_mc_client
from api.utils import get_mc_client
mc = get_mc_client()